|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjava.lang.Thread
ch.sf.htt.ProcessStreamHandler
public class ProcessStreamHandler
Reads any input stream in a separate thread until the stream is finished.
| 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 | |
|---|---|
ProcessStreamHandler(java.io.InputStream inputStream,
java.lang.String streamType)
Creates an instance of a process stream handler. |
|
ProcessStreamHandler(java.io.InputStream inputStream,
java.lang.String streamType,
ITestListener listener)
Creates an instance of a process stream handler. |
|
| Method Summary | |
|---|---|
java.util.List<java.lang.String> |
getText()
Returns the text read from the input stream as a list of strings. |
boolean |
hasCompleted()
Returns true if the stream has been read completely. |
void |
interrupt()
Interrupts reading of this stream. |
void |
run()
|
void |
setVerbose(boolean value)
Allows to enable or disable verbose output. |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, 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, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ProcessStreamHandler(java.io.InputStream inputStream,
java.lang.String streamType,
ITestListener listener)
inputStream - The InputStream that must be read.streamType - The stream type (just a name, like "stdout").
public ProcessStreamHandler(java.io.InputStream inputStream,
java.lang.String streamType)
inputStream - The InputStream that must be read.streamType - The stream type (just a name, like "stdout").| Method Detail |
|---|
public void interrupt()
interrupt in class java.lang.Threadpublic void setVerbose(boolean value)
value - If true, debug output is enabled.public void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic java.util.List<java.lang.String> getText()
public boolean hasCompleted()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||