|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
UI.Run.GEVAStreamReader
public class GEVAStreamReader
A class dedicated to reading the output and error streams of an external process (GEVA for example). This is done in a separate thread which the class handles
| Nested Class Summary | |
|---|---|
static class |
GEVAStreamReader.Event
Event data for stream reading listeners |
static interface |
GEVAStreamReader.Listener
Listen to stream reading events |
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
static int |
ID_ERR_OUT
Write using error formatting |
static int |
ID_STD_OUT
Write using output formatting |
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
GEVAStreamReader(java.lang.ThreadGroup threadGroup,
java.io.InputStream stream,
int streamId)
Create a thread to read a stream and output to a string property |
|
| Method Summary | |
|---|---|
void |
addStreamListener(GEVAStreamReader.Listener streamListener)
Add a listener that can respond to new lines being read in from the stream. |
void |
run()
Run the blocking stream reader in its own thread. |
| 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, 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 |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int ID_STD_OUT
public static final int ID_ERR_OUT
| Constructor Detail |
|---|
public GEVAStreamReader(java.lang.ThreadGroup threadGroup,
java.io.InputStream stream,
int streamId)
stream - The stream to readstreamId - The streamId of stream this be, either ID_STD_OUT or
ID_ERR_OUT| Method Detail |
|---|
public void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic void addStreamListener(GEVAStreamReader.Listener streamListener)
streamListener - The object that can respond to new lines read from
stream
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||