net.luniks.process
Class ProcessHandler.InputStreamReaderThread

java.lang.Object
  extended byjava.lang.Thread
      extended bynet.luniks.process.ProcessHandler.InputStreamReaderThread
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
ProcessHandler

class ProcessHandler.InputStreamReaderThread
extends java.lang.Thread

Thread to read from stdout/stderr of the process

Author:
Torsten Römer, www.luniks.net

Field Summary
private  java.io.BufferedReader inputStream
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
(package private) ProcessHandler.InputStreamReaderThread(java.io.InputStream inputStream)
          Constructs an InputStreamReaderThread that will read from the InputStream given as first argument and call the method lineAction in ProcessHandler whenever a new line has been read from the stream.
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, 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.BufferedReader inputStream
Constructor Detail

ProcessHandler.InputStreamReaderThread

ProcessHandler.InputStreamReaderThread(java.io.InputStream inputStream)
Constructs an InputStreamReaderThread that will read from the InputStream given as first argument and call the method lineAction in ProcessHandler whenever a new line has been read from the stream. The line is given as argument to the method.

Method Detail

run

public void run()


Copyright (c) 2004, 2005 Torsten Römer, dode@luniks.net