java.lang
Class ConcreteProcess

java.lang.Object
java.lang.Process
java.lang.ConcreteProcess
- final class ConcreteProcess
- extends Process
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConcreteProcess
public ConcreteProcess(String[] progarray,
String[] envp,
java.io.File dir)
throws java.io.IOException
destroy
public void destroy()
- Description copied from class:
Process
- Kills the subprocess and all of its children forcibly.
- Specified by:
destroy in class Process
exitValue
public int exitValue()
- Description copied from class:
Process
- When a process terminates there is associated with that termination
an exit value for the process to indicate why it terminated. A return
of
0 denotes normal process termination by convention.
- Specified by:
exitValue in class Process
getErrorStream
public java.io.InputStream getErrorStream()
- Description copied from class:
Process
- Obtain the input stream that receives data from the subprocess. This is
the STDERR of the subprocess. When implementing, you should probably
use a buffered stream.
- Specified by:
getErrorStream in class Process
getInputStream
public java.io.InputStream getInputStream()
- Description copied from class:
Process
- Obtain the input stream that receives data from the subprocess. This is
the STDOUT of the subprocess. When implementing, you should probably
use a buffered stream.
- Specified by:
getInputStream in class Process
getOutputStream
public java.io.OutputStream getOutputStream()
- Description copied from class:
Process
- Obtain the output stream that sends data to the subprocess. This is
the STDIN of the subprocess. When implementing, you should probably
use a buffered stream.
- Specified by:
getOutputStream in class Process
waitFor
public int waitFor()
throws InterruptedException
- Description copied from class:
Process
- The thread calling
waitFor will block until the subprocess
has terminated. If the process has already terminated then the method
immediately returns with the exit value of the subprocess.
- Specified by:
waitFor in class Process