|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--springs.util.ProcessExecutor.ReaderThread
Field Summary | |
private java.io.BufferedReader |
_input
|
private java.lang.String |
_linePrefix
|
private int |
_numReadLines
|
private java.lang.Object |
_object
|
private java.lang.String |
_stringForEnd
|
private java.lang.String |
_stringForStart
|
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
ProcessExecutor.ReaderThread(java.lang.String linePrefix,
java.io.InputStream is,
java.lang.Object object,
java.lang.String stringForStart,
java.lang.String stringForEnd)
Constructor. |
Method Summary | |
int |
getNumReadLines()
Gets the number of lines read so far. |
void |
run()
Main method. |
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 |
private java.lang.String _linePrefix
private java.io.BufferedReader _input
private java.lang.Object _object
private java.lang.String _stringForStart
private java.lang.String _stringForEnd
private int _numReadLines
Constructor Detail |
public ProcessExecutor.ReaderThread(java.lang.String linePrefix, java.io.InputStream is, java.lang.Object object, java.lang.String stringForStart, java.lang.String stringForEnd)
linePrefix
- a prefix that will be put before any output line.is
- the input stream.object
- the object that will be notified anytime something is read. Pass
null if no notification is required.stringForStart
- the string that signals the start of the process.stringForEnd
- the string that signals the end of the process.String
,
InputStream
,
Object
Method Detail |
public int getNumReadLines()
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |