FileDocCategorySizeDatePackage
Process.javaAPI DocAndroid 1.5 API3201Wed May 06 22:41:04 BST 2009java.lang

Process

public abstract class Process extends Object
Represents an external process. Enables writing to, reading from, destroying, and waiting for the external process, as well as querying its exit value.
see
Runtime#exec
see
ProcessBuilder#start()
since
Android 1.0

Fields Summary
Constructors Summary
Methods Summary
public abstract voiddestroy()
Terminates this process and closes any associated streams.

since
Android 1.0

public abstract intexitValue()
Returns the exit value of the native process represented by this object. It is available only when the native process has terminated.

return
the exit value of this process.
throws
IllegalThreadStateException if this process has not terminated.
since
Android 1.0

public abstract java.io.InputStreamgetErrorStream()
Returns an input stream that is connected to the error stream (stderr) of the native process represented by this object.

return
the input stream to read from the error stream associated with the native process.
since
Android 1.0

public abstract java.io.InputStreamgetInputStream()
Returns an input stream that is connected to the standard output stream (stdout) of the native process represented by this object.

return
the input stream to read from the output stream associated with the native process.
since
Android 1.0

public abstract java.io.OutputStreamgetOutputStream()
Returns an output stream that is connected to the standard input stream (stdin) of the native process represented by this object.

return
the output stream to write to the input stream associated with the native process.
since
Android 1.0

public abstract intwaitFor()
Causes the calling thread to wait for the native process associated with this object to finish executing.

return
the exit value of the native process being waited on.
throws
InterruptedException if the calling thread is interrupted.
since
Android 1.0