Build 1.0_r1(from source)

java.lang
Class Process

java.lang.Object
  extended by java.lang.Process
Direct Known Subclasses:
ProcessManager.ProcessImpl

public abstract class Process
extends Object

Instances of class Process provide control of and access to platform processes.


Constructor Summary
Process()
           
 
Method Summary
abstract  void destroy()
          Terimates the receiver and closes any associated streams.
abstract  int exitValue()
          Returns the exit value of the receiving Process.
abstract  InputStream getErrorStream()
          Returns the receiver's error output stream.
abstract  InputStream getInputStream()
          Returns the receiver's standard input stream
abstract  OutputStream getOutputStream()
          Returns the receiver's standard output stream
abstract  int waitFor()
          Causes the calling thread to wait for the process associated with the receiver to finish executing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Process

public Process()
Method Detail

destroy

public abstract void destroy()
Terimates the receiver and closes any associated streams.


exitValue

public abstract int exitValue()
Returns the exit value of the receiving Process. It is available only when the OS subprocess is finished.

Returns:
The exit value of the receiver.
Throws:
IllegalThreadStateException - If the receiver has not terminated.

getErrorStream

public abstract InputStream getErrorStream()
Returns the receiver's error output stream.

Note: This is an InputStream which allows reading of the other threads "stderr".

Returns:
The error stream associated with the receiver

getInputStream

public abstract InputStream getInputStream()
Returns the receiver's standard input stream

Note: This is an InputStream which allows reading from the other process' "stdout".

Returns:
The receiver's process' stdin.

getOutputStream

public abstract OutputStream getOutputStream()
Returns the receiver's standard output stream

Note: This is an OutputStream which allows writing to the other process' "stdin".

Returns:
The receiver's process' stdout.

waitFor

public abstract int waitFor()
                     throws InterruptedException
Causes the calling thread to wait for the process associated with the receiver to finish executing.

Returns:
The exit value of the Process being waited on
Throws:
InterruptedException - If the calling thread is interrupted

Build 1.0_r1(from source)

Please submit a feedback, bug or feature