|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectca.utoronto.SimpleProcess.SimpleProcess
SimpleProcess: A simpler interface for running external processes
| Constructor Summary | |
SimpleProcess(String[] command)
Create a new SimpleProcess object |
|
| Method Summary | |
static String |
run(String[] command)
Run a process and return its result as a string |
BufferedReader |
stderr()
Access the stderr stream for the process |
BufferedReader |
stdout()
Access the stdout stream for the process |
int |
waitFor()
Wait for the process to exit |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SimpleProcess(String[] command)
throws IOException
command - The command to run| Method Detail |
public static String run(String[] command)
throws IOException,
InterruptedException
command - The command to run
IOException
InterruptedExceptionpublic BufferedReader stderr()
public BufferedReader stdout()
public int waitFor()
throws InterruptedException
InterruptedException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||