Package org.ghost4j.util
Class StreamGobbler
- java.lang.Object
-
- java.lang.Thread
-
- org.ghost4j.util.StreamGobbler
-
- All Implemented Interfaces:
java.lang.Runnable
public class StreamGobbler extends java.lang.Thread
Utility class used to read a stream and write it to another stream (redirection).
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.io.InputStream
inputStream
Input stream to read.(package private) java.io.OutputStream
outputStream
Output stream to write.
-
Constructor Summary
Constructors Constructor Description StreamGobbler(java.io.InputStream inputStream, java.io.OutputStream outputStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run()
-
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, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-