Package daikon.chicory
Class StreamRedirectThread
-
- All Implemented Interfaces:
Runnable
public class StreamRedirectThread extends Thread
StreamRedirectThread is a thread that copies its input to its output and terminates when it completes.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class Thread
Thread.State, Thread.UncaughtExceptionHandler
-
-
Field Summary
-
Fields inherited from class Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description StreamRedirectThread(String name, InputStream in, OutputStream out)
StreamRedirectThread(String name, InputStream in, OutputStream out, boolean line_by_line)
StreamRedirectThread(String name, InputStream in, OutputStream out, boolean line_by_line, boolean debug)
Set up for copy.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run()
Copy.-
Methods inherited from class 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
-
-
-
-
Constructor Detail
-
StreamRedirectThread
public StreamRedirectThread(String name, InputStream in, OutputStream out)
-
StreamRedirectThread
public StreamRedirectThread(String name, InputStream in, OutputStream out, boolean line_by_line)
-
StreamRedirectThread
public StreamRedirectThread(String name, InputStream in, OutputStream out, boolean line_by_line, boolean debug)
Set up for copy.- Parameters:
name
- name of the threadin
- stream to copy fromout
- stream to copy toline_by_line
- whether to copy one line at a timedebug
- whether to enable debugging
-
-