|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Process
Untamed:
Constructor Summary | |
Process()
Enabled: |
Method Summary | |
CharPipeAdapter |
attachStderr(Writer alterr)
Added: |
CharPipeAdapter |
attachStdin(Reader altin)
Added: |
CharPipeAdapter |
attachStdout(Writer altout)
Added: |
abstract void |
destroy()
Enabled: Kills the subprocess. |
abstract int |
exitValue()
Enabled: Returns the exit value for the subprocess. |
abstract InputStream |
getErrorStream()
Enabled: Gets the error stream of the subprocess. |
abstract InputStream |
getInputStream()
Enabled: Gets the input stream of the subprocess. |
abstract OutputStream |
getOutputStream()
Enabled: Gets the output stream of the subprocess. |
BufferedReader |
getStderr()
Added: |
TextWriter |
getStdin()
Added: |
BufferedReader |
getStdout()
Added: |
Object[] |
results()
Added: Use only on prompt processes, as this will block the vat until the process completes! |
abstract int |
waitFor()
Enabled: causes the current thread to wait, if necessary, until the process represented by this Process object has
terminated. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Process()
Method Detail |
public abstract OutputStream getOutputStream()
Process
object.
Implementation note: It is a good idea for the output stream to be buffered.
public abstract InputStream getInputStream()
Process
object.
Implementation note: It is a good idea for the input stream to be buffered.
public abstract InputStream getErrorStream()
Process
object.
Implementation note: It is a good idea for the input stream to be buffered.
public abstract int waitFor() throws InterruptedException
Process
object has
terminated. This method returns
immediately if the subprocess has already terminated. If the
subprocess has not yet terminated, the calling thread will be
blocked until the subprocess exits.
0
indicates normal termination.
InterruptedException
public abstract int exitValue()
Process
object. by convention, the value
0
indicates normal termination.public abstract void destroy()
Process
object is forcibly terminated.
public TextWriter getStdin()
public CharPipeAdapter attachStdin(Reader altin)
altin
-
public BufferedReader getStdout()
public CharPipeAdapter attachStdout(Writer altout)
altout
-
public BufferedReader getStderr()
public CharPipeAdapter attachStderr(Writer alterr)
alterr
-
public Object[] results() throws InterruptedException
Waits for the Process to exit.
InterruptedException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |