English | Site Directory

Android - An Open Handset Alliance Project

java.lang
public abstract class

java.lang.Process

java.lang.Object
java.lang.Process

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

Summary

Public Constructors

          Process()

Public Methods

abstract        void  destroy()
Terimates the receiver and closes any associated streams.
abstract        int  exitValue()
Answers the exit value of the receiving Process.
abstract        InputStream  getErrorStream()
Answers the receiver's error output stream.
abstract        InputStream  getInputStream()
Answers the receiver's standard input stream

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

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

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

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

Details

Public Constructors

public Process()

Public Methods

public abstract void destroy()

Terimates the receiver and closes any associated streams.

public abstract int exitValue()

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

public abstract InputStream getErrorStream()

Answers 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

public abstract InputStream getInputStream()

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

public abstract OutputStream getOutputStream()

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

public abstract int waitFor()

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 m5-rc15i - 10 Jun 2008 13:54