|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jtheque.utils.io.SimpleApplicationConsumer
public final class SimpleApplicationConsumer
This class enable to launch an application and to redirect resultStream and err flows to a StringBuilder.
Constructor Summary | |
---|---|
SimpleApplicationConsumer(String... args)
Construct a new SimpleApplicationConsumer to launch a simple application with some arguments. |
Method Summary | |
---|---|
void |
consume()
Consume all the streams of the process. |
String |
getResult()
Return the result of the consumed process. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleApplicationConsumer(String... args)
args
- The application followed by the arguments to pass to the application.Method Detail |
---|
public void consume() throws IOException
IOException
- I/O errorpublic String getResult()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |