public class WrapperProcess
extends java.lang.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.
|
java.io.InputStream |
getErrorStream()
Gets the error stream of the subprocess.
|
java.io.InputStream |
getInputStream()
Gets the input stream of the subprocess.
|
java.io.OutputStream |
getOutputStream()
Gets the output stream of the subprocess.
|
int |
getPID()
Returns the PID of the process.
|
java.io.InputStream |
getStdErr()
Gets the error stream of the subprocess.
|
java.io.OutputStream |
getStdIn()
Gets the output stream of the subprocess.
|
java.io.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 java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public int getPID()
public java.io.InputStream getInputStream() throws java.io.IOException
This is an alias of the getStdOut() method.
Implementation note: It is a good idea for the input stream to be buffered.
java.io.IOException
- If we are unable to access the stream.public java.io.InputStream getStdOut() throws java.io.IOException
This is an alias of the getInputStream() method.
Implementation note: It is a good idea for the input stream to be buffered.
java.io.IOException
- If we are unable to access the stream.public java.io.InputStream getErrorStream() throws java.io.IOException
This is an alias of the getStdErr() method.
Implementation note: It is a good idea for the input stream to be buffered.
java.io.IOException
- If we are unable to access the stream.public java.io.InputStream getStdErr() throws java.io.IOException
This is an alias of the getErrorStream() method.
Implementation note: It is a good idea for the input stream to be buffered.
java.io.IOException
- If we are unable to access the stream.public java.io.OutputStream getOutputStream() throws java.io.IOException
This is an alias of the getStdIn() method.
Implementation note: It is a good idea for the output stream to be buffered.
java.io.IOException
- If we are unable to access the stream.public java.io.OutputStream getStdIn() throws java.io.IOException
This is an alias of the getOutputStream() method.
Implementation note: It is a good idea for the output stream to be buffered.
java.io.IOException
- If we are unable to access the stream.public int waitFor() throws java.lang.InterruptedException
java.lang.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 java.lang.IllegalThreadStateException
java.lang.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, 2021 Tanuki Software Inc., All Rights Reserved.