public class WrapperProcess extends Object
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Kills the subprocess.
|
int |
exitValue()
Returns the exit value for the subprocess.
|
protected void |
finalize()
Finalize method.
|
InputStream |
getErrorStream()
Gets the error stream of the subprocess.
|
InputStream |
getInputStream()
Gets the input stream of the subprocess.
|
OutputStream |
getOutputStream()
Gets the output stream of the subprocess.
|
int |
getPID()
Returns the PID of the process.
|
InputStream |
getStdErr()
Gets the error stream of the subprocess.
|
OutputStream |
getStdIn()
Gets the output stream of the subprocess.
|
InputStream |
getStdOut()
Gets the input stream of the subprocess.
|
boolean |
isAlive()
Returns true if the process is still alive.
|
int |
waitFor()
Causes the current thread to wait, if necessary, until the process
represented by this Process object has terminated.
|
protected void finalize() throws Throwable
public int getPID()
public InputStream getInputStream() throws IOException
This is an alias of the getStdOut() method.
Implementation note: It is a good idea for the input stream to be buffered.
IOException
- If we are unable to access the stream.public InputStream getStdOut() throws IOException
This is an alias of the getInputStream() method.
Implementation note: It is a good idea for the input stream to be buffered.
IOException
- If we are unable to access the stream.public InputStream getErrorStream() throws IOException
This is an alias of the getStdErr() method.
Implementation note: It is a good idea for the input stream to be buffered.
IOException
- If we are unable to access the stream.public InputStream getStdErr() throws IOException
This is an alias of the getErrorStream() method.
Implementation note: It is a good idea for the input stream to be buffered.
IOException
- If we are unable to access the stream.public OutputStream getOutputStream() throws IOException
This is an alias of the getStdIn() method.
Implementation note: It is a good idea for the output stream to be buffered.
IOException
- If we are unable to access the stream.public OutputStream getStdIn() throws IOException
This is an alias of the getOutputStream() method.
Implementation note: It is a good idea for the output stream to be buffered.
IOException
- If we are unable to access the stream.public int waitFor() throws InterruptedException
InterruptedException
- If the current thread is interrupted by
another thread while it is waiting, then
the wait is ended and an
InterruptedException is thrown.public int exitValue() throws IllegalThreadStateException
IllegalThreadStateException
- if the process is still alive
and has not yet teminated.public boolean isAlive()
WrapperLicenseError
- If the function is called other than in
the Professional Edition or from a Standalone JVM.public void destroy()
WrapperLicenseError
- If the function is called other than in
the Professional Edition or from a Standalone JVM.Copyright 1999, 2016 Tanuki Software Inc., All Rights Reserved.