public abstract class Process extends Object
Constructor and Description |
---|
Process() |
Modifier and Type | Method and Description |
---|---|
abstract void |
destroy()
Kills the subprocess.
|
abstract int |
exitValue()
Returns the exit value of the sub-process.
|
abstract InputStream |
getErrorStream()
Get an InputStream from which you can read the standard error of the sub-process.
|
abstract InputStream |
getInputStream()
Get an InputStream from which you can read the standard output of the sub-process.
|
abstract OutputStream |
getOutputStream()
Get an OutputStream to which you can write to the standard input of the sub-process.
|
abstract int |
waitFor()
Wait until the sub-process has ended and return the exit value.
|
public abstract void destroy()
public abstract int exitValue() throws IllegalThreadStateException
IllegalThreadStateException
- if the process has not yet terminated.public abstract int waitFor() throws InterruptedException
InterruptedException
- if the thread was interrupted.public abstract InputStream getInputStream()
public abstract InputStream getErrorStream()
public abstract OutputStream getOutputStream()