Package com.biglybt.core.logging.impl
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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private final LogIDs
private final int
private final PrintStream
Fields inherited from class java.io.ByteArrayOutputStream
buf, count
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
RedirectorStream
(PrintStream _ps, LogIDs _logID, int _logType) -
Method Summary
Methods inherited from class java.io.ByteArrayOutputStream
size, toByteArray, toString, toString, toString, toString, write, write, writeBytes, writeTo
Methods inherited from class java.io.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:
reset
in classByteArrayOutputStream
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classByteArrayOutputStream
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-