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.ThreadUtility 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.InputStreaminputStreamInput stream to read.(package private) java.io.OutputStreamoutputStreamOutput 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 voidrun()-
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
-
-