|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.darwinsys.lang.ExecAndPrint
ExecAndPrint runs a program using Runtime.exec(), read the program's output, and returns its exit status.
Field Summary | |
protected static java.lang.Runtime |
r
Need a Runtime object for any of these methods |
Constructor Summary | |
ExecAndPrint()
|
Method Summary | |
static int |
run(java.lang.String cmd)
Run the command given as a String, printing its output to System.out |
static int |
run(java.lang.String[] cmd)
Run the command given as a String[], print its output to System.out |
static int |
run(java.lang.String[] cmd,
java.io.Writer out)
Run the command given as a String[], print its output to "out" |
static int |
run(java.lang.String cmd,
java.io.Writer out)
Run the command given as a String, print its output to "out" |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static java.lang.Runtime r
Constructor Detail |
public ExecAndPrint()
Method Detail |
public static int run(java.lang.String cmd) throws java.io.IOException
java.io.IOException
public static int run(java.lang.String cmd, java.io.Writer out) throws java.io.IOException
java.io.IOException
public static int run(java.lang.String[] cmd) throws java.io.IOException
java.io.IOException
public static int run(java.lang.String[] cmd, java.io.Writer out) throws java.io.IOException
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |