|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Process
public abstract class Process
Process represents an external Process that was created via Runtime.exec() or ProcessBuilder.start().
| Constructor Summary | |
|---|---|
Process()
Constructor initializes an abstract process instance. |
|
| Method Summary | |
|---|---|
abstract void |
destroy()
destroy attempts to kill this process. |
abstract int |
exitValue()
exitValue returns the exit value from this terminated process. |
abstract InputStream |
getErrorStream()
getErrorStream returns the error stream of this process, i.e., the stream that is used to read stderr output from the process. |
abstract InputStream |
getInputStream()
getInputStream returns the input stream of this process, i.e., the stream that is used to read data from the process. |
abstract OutputStream |
getOutputStream()
getOutputStream returns the output stream of this process, i.e., the stream that is used to feed data into the process. |
abstract int |
waitFor()
waitFor waits for the process to terminate. |
| 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 - in case this thread is interrupted
while waiting.
public abstract int exitValue()
throws IllegalThreadStateException
IllegalThreadStateException - if the process has not
terminated yet.public abstract void destroy()
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||