randoop.util
Class StreamRedirectThread

Object
  extended by Thread
      extended by StreamRedirectThread
All Implemented Interfaces:
Runnable

public class StreamRedirectThread
extends Thread

StreamRedirectThread is a thread which copies it's input to it's output and terminates when it completes.


Nested Class Summary
Modifier and Type Class and Description
 
Nested classes/interfaces inherited from class Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
Modifier and Type Field and Description
 
Fields inherited from class Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Constructor and Description
StreamRedirectThread(String name, InputStream in, OutputStream out)
          Set up for copy.
 
Method Summary
Modifier and Type Method and Description
 void run()
          Copy.
 
Methods inherited from class Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StreamRedirectThread

public StreamRedirectThread(String name,
                            InputStream in,
                            OutputStream out)
Set up for copy.

Parameters:
name - Name of the thread
in - Stream to copy from
out - Stream to copy to
Method Detail

run

public void run()
Copy.

Specified by:
run in interface Runnable
Overrides:
run in class Thread