ptolemy.util
Class StreamExec._StreamReaderThread

java.lang.Object
  extended by java.lang.Thread
      extended by ptolemy.util.StreamExec._StreamReaderThread
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
StreamExec

private static class StreamExec._StreamReaderThread
extends java.lang.Thread

Private class that reads a stream in a thread and updates the the StreamExec.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
private  java.io.InputStream _inputStream
          Stream from which to read.
private  StreamExec _streamExec
          StreamExec which is written.
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
StreamExec._StreamReaderThread(java.io.InputStream inputStream, StreamExec streamExec)
          Construct a StreamReaderThread.
 
Method Summary
 void run()
          Read lines from the _inputStream and output them.
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_inputStream

private java.io.InputStream _inputStream
Stream from which to read.


_streamExec

private StreamExec _streamExec
StreamExec which is written.

Constructor Detail

StreamExec._StreamReaderThread

StreamExec._StreamReaderThread(java.io.InputStream inputStream,
                               StreamExec streamExec)
Construct a StreamReaderThread.

Parameters:
inputStream - the stream from which to read.
streamExec - The StreamExec to be written.
Method Detail

run

public void run()
Read lines from the _inputStream and output them.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread