Class StreamGobbler
java.lang.Object
java.lang.Thread
org.ghost4j.util.StreamGobbler
- All Implemented Interfaces:
Runnable
Utility class used to read a stream and write it to another stream
(redirection).
-
Nested Class Summary
Nested classes/interfaces inherited from class Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsModifier and TypeFieldDescription(package private) InputStreamInput stream to read.(package private) OutputStreamOutput stream to write.Fields inherited from class Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Thread
activeCount, checkAccess, clone, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, threadId, toString, yield
-
Field Details
-
inputStream
InputStream inputStreamInput stream to read. -
outputStream
OutputStream outputStreamOutput stream to write.
-
-
Constructor Details
-
StreamGobbler
-
-
Method Details
-
run
-