processing.app.exec

## Class StreamRedirectThread

- Object
- - Thread
  - - 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

    - ### 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 and Description
    `StreamRedirectThread(String name, InputStream in, OutputStream out)` Set up for copy.
    `StreamRedirectThread(String name, Reader in, Writer out)`

  - ### Method Summary

    Methods
    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

      `equals, 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

    - #### StreamRedirectThread

          public StreamRedirectThread(String name,
                              Reader in,
                              Writer out)

  - ### Method Detail

    - #### run

          public void run()

      Copy.
      Specified by:
        `run` in interface `Runnable`
      Overrides:
        `run` in class `Thread`