processing.app.debug
Class StreamRedirectThread

java.lang.Object
  extended by java.lang.Thread
      extended by processing.app.debug.StreamRedirectThread
All Implemented Interfaces:
java.lang.Runnable

public class StreamRedirectThread
extends java.lang.Thread

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


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
StreamRedirectThread(java.lang.String name, java.io.InputStream in, java.io.OutputStream out)
          Set up for copy.
 
Method Summary
 void run()
          Copy.
 
Methods inherited from class java.lang.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 java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StreamRedirectThread

public StreamRedirectThread(java.lang.String name,
                            java.io.InputStream in,
                            java.io.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 java.lang.Runnable
Overrides:
run in class java.lang.Thread