ewe.sys
Class Process

java.lang.Object
  extended byewe.sys.Process

public abstract class Process
extends Object


Constructor Summary
Process()
           
 
Method Summary
abstract  void destroy()
          Kills the process.
abstract  int exitValue()
          Get the exit value of the process.
abstract  Stream getErrorStream()
          Return an Input Stream to read from the standard error output of the process.
abstract  Stream getInputStream()
          Return an Input Stream to read from the standard output of the process.
abstract  Stream getOutputStream()
          Return an Output Stream to write to the standard input of the process.
abstract  void waitFor()
          Wait until the process exits.
abstract  boolean waitFor(TimeOut t)
          Wait until the process exits.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, toString
 

Constructor Detail

Process

public Process()
Method Detail

destroy

public abstract void destroy()
Kills the process.


waitFor

public abstract void waitFor()
Wait until the process exits.


waitFor

public abstract boolean waitFor(TimeOut t)
Wait until the process exits.

Parameters:
t - The length of time to wait.
Returns:
true if the process did exit, false if the timeout expired before the process exited.

exitValue

public abstract int exitValue()
                       throws IllegalThreadStateException
Get the exit value of the process.

Returns:
the exit value of the process.
Throws:
IllegalThreadStateException - if the process is still running.

getErrorStream

public abstract Stream getErrorStream()
Return an Input Stream to read from the standard error output of the process.


getOutputStream

public abstract Stream getOutputStream()
Return an Output Stream to write to the standard input of the process.


getInputStream

public abstract Stream getInputStream()
Return an Input Stream to read from the standard output of the process.