Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

java.lang
Class ConcreteProcess  view ConcreteProcess download ConcreteProcess.java

java.lang.Object
  extended byjava.lang.Process
      extended byjava.lang.ConcreteProcess

final class ConcreteProcess
extends Process


Constructor Summary
ConcreteProcess(String[] progarray, String[] envp, java.io.File dir)
           
 
Method Summary
 void destroy()
          Kills the subprocess and all of its children forcibly.
 int exitValue()
          When a process terminates there is associated with that termination an exit value for the process to indicate why it terminated.
 java.io.InputStream getErrorStream()
          Obtain the input stream that receives data from the subprocess.
 java.io.InputStream getInputStream()
          Obtain the input stream that receives data from the subprocess.
 java.io.OutputStream getOutputStream()
          Obtain the output stream that sends data to the subprocess.
 int waitFor()
          The thread calling waitFor will block until the subprocess has terminated.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConcreteProcess

public ConcreteProcess(String[] progarray,
                       String[] envp,
                       java.io.File dir)
                throws java.io.IOException
Method Detail

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