java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
java.io.PrintStream
org.autogui.base.log.GuiLogManager.LogPrintStream
- All Implemented Interfaces:
Closeable
,Flushable
,Appendable
,AutoCloseable
- Enclosing class:
GuiLogManager
a console-wrapper stream, with supporting printing exceptions
-
Field Summary
FieldsFields inherited from class java.io.FilterOutputStream
out
-
Constructor Summary
ConstructorsConstructorDescriptionLogPrintStream
(GuiLogManager manager) LogPrintStream
(GuiLogManager manager, OutputStream out) LogPrintStream
(GuiLogManager manager, PrintStream original, OutputStream out, GuiLogManager.LogStreamType outType) -
Method Summary
Methods inherited from class java.io.PrintStream
append, append, append, charset, checkError, clearError, close, flush, format, format, print, print, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, println, println, setError, write, write, write, writeBytes
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Field Details
-
original
-
-
Constructor Details
-
LogPrintStream
-
LogPrintStream
-
LogPrintStream
public LogPrintStream(GuiLogManager manager, PrintStream original, OutputStream out, GuiLogManager.LogStreamType outType) - Parameters:
manager
- the manageroriginal
- the original wrapped stream (typicallySystem.err
orSystem.out
)out
- the wrapped outoutType
- the type of out- Since:
- 1.1
-
-
Method Details
-
getManager
-
getOriginal
- Returns:
- the wrapped stream
- Since:
- 1.1
-
getOut
-
getOutType
- Returns:
- if out is
GuiLogManager.LogOutputStream
, it's outType, or Other - Since:
- 1.1
-
println
- Overrides:
println
in classPrintStream
-