|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Process
An instance of class Process is returned by variants of the exec () method in class System. From the Process instance, it is possible to: get the standin and/or standout of the subprocess, kill the subprocess, wait for it to terminate, and to retrieve the final exit value of the process.
Dropping the last reference to a Process instance does not kill the subprocess. There is no requirement that the subprocess execute asynchronously with the existing Java process.
Constructor Summary | |
Process()
|
Method Summary | |
abstract void |
destroy()
Kills the subprocess. |
abstract int |
exitValue()
Returns the exit value for the subprocess. |
abstract InputStream |
getErrorStream()
Returns the an InputStream connected to the error stream of the child process. |
abstract InputStream |
getInputStream()
Returns a Stream connected to the output of the child process. |
abstract OutputStream |
getOutputStream()
Returns a Stream connected to the input of the child process. |
abstract int |
waitFor()
Waits for the subprocess to complete. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Process()
Method Detail |
public abstract OutputStream getOutputStream()
public abstract InputStream getInputStream()
public abstract InputStream getErrorStream()
public abstract int waitFor() throws InterruptedException
InterruptedException
- Another thread has interrupted this thread.public abstract int exitValue()
IllegalThreadStateException
- If the subprocess has not yet
terminated.public abstract void destroy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |