|
ZetaGrid v1.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--zeta.util.ProcessUtils
Provides process utilities.
| Constructor Summary | |
ProcessUtils()
|
|
| Method Summary | |
static int |
exec(java.lang.String command)
Executes the specified string command in a separate process and causes the current thread to wait, if necessary, until the process represented by this Process object has terminated. |
static int |
exec(java.lang.String command,
java.io.OutputStream out,
boolean autoFlush)
Executes the specified string command in a separate process and causes the current thread to wait, if necessary, until the process represented by this Process object has terminated. |
static int |
exec(java.lang.String command,
java.io.OutputStream out,
boolean autoFlush,
int timeout)
Executes the specified string command in a separate process and causes the current thread to wait, if necessary, until the process represented by this Process object has terminated. |
static int |
exec(java.lang.String command,
java.io.OutputStream out,
java.io.OutputStream error,
boolean autoFlush,
int timeout)
Executes the specified string command in a separate process and causes the current thread to wait, if necessary, until the process represented by this Process object has terminated. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ProcessUtils()
| Method Detail |
public static int exec(java.lang.String command)
command - a specified system command
public static int exec(java.lang.String command,
java.io.OutputStream out,
boolean autoFlush)
command - a specified system commandout - the standard output of the running process will be transferred to the specified writerautoFlush - if true, the output buffer will be flushed whenever a byte array is written, one of the
println methods is invoked, or a newline character or byte ('\n') is written
public static int exec(java.lang.String command,
java.io.OutputStream out,
boolean autoFlush,
int timeout)
command - a specified system commandout - the standard output of the running process will be transferred to the specified writerautoFlush - if true, the output buffer will be flushed whenever a byte array is written, one of the
println methods is invoked, or a newline character or byte ('\n') is writtentimeout - the process will be destroyed if the process runs longer than the specified time (in milliseconds)
public static int exec(java.lang.String command,
java.io.OutputStream out,
java.io.OutputStream error,
boolean autoFlush,
int timeout)
command - a specified system commandout - the standard output of the running process will be transferred to the specified writererror - the error output of the running process will be transferred to the specified writerautoFlush - if true, the output buffer will be flushed whenever a byte array is written, one of the
println methods is invoked, or a newline character or byte ('\n') is writtentimeout - the process will be destroyed if the process runs longer than the specified time (in milliseconds)
|
ZetaGrid v1.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||