public interface ExecuteStreamHandler
Execute
to handle input and output stream of
subprocesses.Modifier and Type | Method and Description |
---|---|
void |
setProcessErrorStream(InputStream is)
Install a handler for the error stream of the subprocess.
|
void |
setProcessInputStream(OutputStream os)
Install a handler for the input stream of the subprocess.
|
void |
setProcessOutputStream(InputStream is)
Install a handler for the output stream of the subprocess.
|
void |
start()
Start handling of the streams.
|
void |
stop()
Stop handling of the streams - will not be restarted.
|
void setProcessErrorStream(InputStream is) throws IOException
is
- input stream to read from the error stream from the subprocessIOException
- on errorvoid setProcessInputStream(OutputStream os) throws IOException
os
- output stream to write to the standard input stream of the
subprocessIOException
- on errorvoid setProcessOutputStream(InputStream is) throws IOException
is
- input stream to read from the error stream from the subprocessIOException
- on errorvoid start() throws IOException
IOException
- on errorvoid stop()