java.lang.Object
java.io.OutputStream
org.autogui.base.log.GuiLogManager.LogOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
- Enclosing class:
GuiLogManager
a stream wrapper with writing to a log-manager, used by
GuiLogManager.LogPrintStream
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ByteBuffer
protected Charset
protected GuiLogManager
protected OutputStream
protected GuiLogManager.LogStreamType
-
Constructor Summary
ConstructorsConstructorDescriptionLogOutputStream
(GuiLogManager manager) LogOutputStream
(GuiLogManager manager, OutputStream out) LogOutputStream
(GuiLogManager manager, OutputStream out, GuiLogManager.LogStreamType outType) -
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Field Details
-
out
-
buffer
-
manager
-
defaultCharset
-
outType
- Since:
- 1.1
-
-
Constructor Details
-
LogOutputStream
-
LogOutputStream
-
LogOutputStream
public LogOutputStream(GuiLogManager manager, OutputStream out, GuiLogManager.LogStreamType outType) - Parameters:
manager
- the managerout
- the wrapped outputoutType
- the out is stdout, err or another- Since:
- 1.1
-
-
Method Details
-
getOutType
- Returns:
- the type of wrapped output
- Since:
- 1.1
-
getOut
- Returns:
- wrapped output
- Since:
- 1.1
-
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
expand
public void expand(int len) -
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-
flushLog
public void flushLog()
-