|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Process
java.lang.ProcessManager.ProcessImpl
static class ProcessManager.ProcessImpl
| 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 |
|---|
final int id
final InputStream errorStream
final InputStream inputStream
final OutputStream outputStream
Integer exitValue
final Object exitValueMutex
| Constructor Detail |
|---|
ProcessManager.ProcessImpl(int id,
FileDescriptor in,
FileDescriptor out,
FileDescriptor err)
| Method Detail |
|---|
public void destroy()
Process
destroy in class Processpublic int exitValue()
Process
exitValue in class Processpublic InputStream getErrorStream()
ProcessNote: This is an InputStream which allows reading of the other threads "stderr".
getErrorStream in class Processpublic InputStream getInputStream()
ProcessNote: This is an InputStream which allows reading from the other process' "stdout".
getInputStream in class Processpublic OutputStream getOutputStream()
ProcessNote: This is an OutputStream which allows writing to the other process' "stdin".
getOutputStream in class Process
public int waitFor()
throws InterruptedException
Process
waitFor in class ProcessInterruptedException - If the calling thread is interruptedvoid setExitValue(int exitValue)
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||