Package org.ghost4j.util
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 java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) InputStream
Input stream to read.(package private) OutputStream
Output stream to write.Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, 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, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, suspend, threadId, toString, yield
-
Field Details
-
inputStream
InputStream inputStreamInput stream to read. -
outputStream
OutputStream outputStreamOutput stream to write.
-
-
Constructor Details
-
StreamGobbler
-
-
Method Details