Class LoggerImpl.RedirectorStream
java.lang.Object
java.io.OutputStream
java.io.ByteArrayOutputStream
com.biglybt.core.logging.impl.LoggerImpl.RedirectorStream
- All Implemented Interfaces:
Closeable, Flushable, AutoCloseable
- Enclosing class:
LoggerImpl
Redirects any incoming text to the logger
- Since:
- 2.3.0.7
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate final LogIDsprivate final intprivate final PrintStreamFields inherited from class ByteArrayOutputStream
buf, count -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRedirectorStream(PrintStream _ps, LogIDs _logID, int _logType) -
Method Summary
Methods inherited from class ByteArrayOutputStream
size, toByteArray, toString, toString, toString, toString, write, write, writeBytes, writeToMethods inherited from class OutputStream
nullOutputStream, write
-
Field Details
-
ps
-
logID
-
logType
private final int logType -
flushing
private boolean flushing
-
-
Constructor Details
-
RedirectorStream
-
-
Method Details
-
reset
public void reset()- Overrides:
resetin classByteArrayOutputStream
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classByteArrayOutputStream- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-