| java.lang.Object net.sourceforge.groboutils.util.thread.v1.BackgroundProcess
BackgroundProcess | public class BackgroundProcess (Code) | | Creates and executes the given process. Ensures that all the output
is properly read without overflowing or dead-locking the process.
Outside of the streaming, this class has an identical API to that
of
java.lang.Process .
Creation of a background process begins at the creation of this object.
Changes for 0.9.1d
- Each IOThreadRunner which handles the background process's
IO have been changed such that they now close the streams when
an EOL is encountered, and have no delay between reads.
author: Matt Albrecht groboclown@users.sourceforge.net since: June 4, 2000 (0.9.1d Alpha) version: $Date: 2003/02/10 22:52:48 $ |
BackgroundProcess | public BackgroundProcess(Process p) throws IOException(Code) | | Initializes the background process with an existing process.
|
getStdErr | public InputStream getStdErr()(Code) | | Get the InputStream that retrieves the data from the StdErr of the
process.
|
getStdIn | public OutputStream getStdIn()(Code) | | Get the OutputStream that is sent to the StdIn of the process.
|
getStdOut | public InputStream getStdOut()(Code) | | Get the InputStream that retrieves the data from the StdOut of the
process.
|
reflectExec | protected static Process reflectExec(Object cmd, String[] env, File dir) throws IOException(Code) | | Attempts to invoke the JDK 1.3 exec method with the given dir.
cmd is either a String or String[] type.
the generated Process. If the process is null,then another technique must be used to execute the command. |
|
|