Build 1.0_r1(from source)

java.lang
Class ProcessManager.ProcessImpl

java.lang.Object
  extended by java.lang.Process
      extended by java.lang.ProcessManager.ProcessImpl
Enclosing class:
ProcessManager

static class ProcessManager.ProcessImpl
extends Process


Field Summary
(package private)  InputStream errorStream
           
(package private)  Integer exitValue
          The process's exit value.
(package private)  Object exitValueMutex
           
(package private)  int id
          Process ID.
(package private)  InputStream inputStream
          Reads output from process.
(package private)  OutputStream outputStream
          Sends output to process.
 
Constructor Summary
ProcessManager.ProcessImpl(int id, FileDescriptor in, FileDescriptor out, FileDescriptor err)
           
 
Method Summary
 void destroy()
          Terimates the receiver and closes any associated streams.
 int exitValue()
          Returns the exit value of the receiving Process.
 InputStream getErrorStream()
          Returns the receiver's error output stream.
 InputStream getInputStream()
          Returns the receiver's standard input stream
 OutputStream getOutputStream()
          Returns the receiver's standard output stream
(package private)  void setExitValue(int exitValue)
           
 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
 

Field Detail

id

final int id
Process ID.


errorStream

final InputStream errorStream

inputStream

final InputStream inputStream
Reads output from process.


outputStream

final OutputStream outputStream
Sends output to process.


exitValue

Integer exitValue
The process's exit value.


exitValueMutex

final Object exitValueMutex
Constructor Detail

ProcessManager.ProcessImpl

ProcessManager.ProcessImpl(int id,
                           FileDescriptor in,
                           FileDescriptor out,
                           FileDescriptor err)
Method Detail

destroy

public void destroy()
Description copied from class: Process
Terimates the receiver and closes any associated streams.

Specified by:
destroy in class Process

exitValue

public int exitValue()
Description copied from class: Process
Returns the exit value of the receiving Process. It is available only when the OS subprocess is finished.

Specified by:
exitValue in class Process
Returns:
The exit value of the receiver.

getErrorStream

public InputStream getErrorStream()
Description copied from class: Process
Returns the receiver's error output stream.

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

Specified by:
getErrorStream in class Process
Returns:
The error stream associated with the receiver

getInputStream

public InputStream getInputStream()
Description copied from class: Process
Returns the receiver's standard input stream

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

Specified by:
getInputStream in class Process
Returns:
The receiver's process' stdin.

getOutputStream

public OutputStream getOutputStream()
Description copied from class: Process
Returns the receiver's standard output stream

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

Specified by:
getOutputStream in class Process
Returns:
The receiver's process' stdout.

waitFor

public int waitFor()
            throws InterruptedException
Description copied from class: Process
Causes the calling thread to wait for the process associated with the receiver to finish executing.

Specified by:
waitFor in class Process
Returns:
The exit value of the Process being waited on
Throws:
InterruptedException - If the calling thread is interrupted

setExitValue

void setExitValue(int exitValue)

Build 1.0_r1(from source)

Please submit a feedback, bug or feature