Method Summary |
|
public void | end() Make sure the underlying file descriptors are closed, to avoid maintening
unused resources in an application server JVM for instance.
any thread.
none. |
public synchronized void | fork() Launches a process but do not wait for its completion.
any thread.
none. |
public synchronized void | logArgs() Displays command line arguments.
any thread.
none. |
public synchronized String | readLineStderr() Reads one line of the stderr.
any thread.
none. |
public synchronized String | readLineStdout() Reads one line of the stdout.
any thread.
none. |
public synchronized String | readStderr() Reads stderr.
Waits for the closure of the process output stream.
Note that this method can return before the process completion.
any thread.
none. |
public synchronized String | readStdout() Reads stdout.
Waits for the end of the process output stream.
Note that this method can return before the process completion.
any thread.
none. |
public synchronized String | readStdoutStderr() Merges stdout and stderr.
Waits for the end of the process output stream.
Note that this method can return before the process completion.
any thread.
none. |
public synchronized String | runStdout() Reads the whole standard output. |
public synchronized String | runStdoutStderr() Reads the whole output. |