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 ByteBufferprotected Charsetprotected GuiLogManagerprotected OutputStreamprotected 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:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
expand
public void expand(int len) -
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
flushLog
public void flushLog()
-