aicas logoJamaica 3.2 release 62

java.lang
Class Process

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

public abstract class Process
extends Object

Process represents an external Process that was created via Runtime.exec() or ProcessBuilder.start().

Since:
1.0

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

Process

public Process()
Constructor initializes an abstract process instance.

Method Detail

getOutputStream

public abstract OutputStream getOutputStream()
getOutputStream returns the output stream of this process, i.e., the stream that is used to feed data into the process.

Returns:
the output stream to feed data into the process.

getInputStream

public abstract InputStream getInputStream()
getInputStream returns the input stream of this process, i.e., the stream that is used to read data from the process.

Returns:
the input stream to read data from the process.

getErrorStream

public 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.

Returns:
the error stream to read error data from the process.

waitFor

public abstract int waitFor()
                     throws InterruptedException
waitFor waits for the process to terminate. Returns immediately if the process has terminated already.

Returns:
the exit value for the process, 0 for normal termination.
Throws:
InterruptedException - in case this thread is interrupted while waiting.

exitValue

public abstract int exitValue()
                       throws IllegalThreadStateException
exitValue returns the exit value from this terminated process.

Returns:
the exit value for the process, 0 for normal termination.
Throws:
IllegalThreadStateException - if the process has not terminated yet.

destroy

public abstract void destroy()
destroy attempts to kill this process.


aicas logoJamaica 3.2 release 62

aicas GmbH, Karlsruhe - Germany    www.aicas.com
Copyright 2001-2008 aicas GmbH. All Rights Reserved.