|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jostraca.util.CommandRunner
Utility class for running a subprocess synchronously from Java and retrieving the contents of System.out and/or system.err.
| Nested Class Summary | |
static class |
CommandRunner.CharPump
Inner class, copies from Reader to Writer. |
| Method Summary | |
static java.lang.String |
exec(java.lang.String[] pCmd)
Runs a process using Runtime.exec(). |
static int |
exec(java.lang.String[] pCmd,
java.io.Writer pOut,
java.io.Writer pErr)
Runs a process using Runtime.exec(). |
static int |
exec(java.lang.String pCmd,
java.io.Writer pOut,
java.io.Writer pErr)
Runs a process using Runtime.exec(). |
static void |
main(java.lang.String[] pArgs)
Main routine, for testing. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static java.lang.String exec(java.lang.String[] pCmd)
public static int exec(java.lang.String[] pCmd,
java.io.Writer pOut,
java.io.Writer pErr)
Note that if one of the Writers blocks, this may block the child process.
public static int exec(java.lang.String pCmd,
java.io.Writer pOut,
java.io.Writer pErr)
Note that if one of the Writers blocks, this may block the child process.
public static void main(java.lang.String[] pArgs)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||