|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ourgrid.common.executor.OutputCatcher
public class OutputCatcher
This class creates a thread to read inputStream
Constructor Summary | |
---|---|
OutputCatcher(java.io.InputStream isr)
Constructs the OutputCatcher object based on a stream to consume. |
Method Summary | |
---|---|
java.lang.String |
getResult()
This method provides access to the information read from stream. |
void |
run()
The main method for the OutputCatcher thread. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OutputCatcher(java.io.InputStream isr)
isr
- The stream will be consumed by the thread.Method Detail |
---|
public void run()
run
in interface java.lang.Runnable
public java.lang.String getResult() throws java.lang.InterruptedException
java.lang.InterruptedException
- If the thread has been interrupted
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |