public interface ExecuteStreamHandler
Execute to handle input and output stream of
subprocesses.| 限定符和类型 | 方法和说明 |
|---|---|
void |
setSubProcessErrorStream(InputStream is)
Install a handler for the error stream of the subprocess.
|
void |
setSubProcessInputStream(OutputStream os)
Install a handler for the input stream of the subprocess.
|
void |
setSubProcessOutputStream(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 setSubProcessInputStream(OutputStream os) throws IOException
os - output stream to write to the standard input stream of the subprocessIOException - thrown when an I/O exception occurs.void setSubProcessErrorStream(InputStream is) throws IOException
is - input stream to read from the error stream from the subprocessIOException - thrown when an I/O exception occurs.void setSubProcessOutputStream(InputStream is) throws IOException
is - input stream to read from the error stream from the subprocessIOException - thrown when an I/O exception occurs.void start()
throws IOException
IOException - thrown when an I/O exception occurs.void stop() throws IOException
IOException - thrown when an I/O exception occurs.Copyright © 2021. All rights reserved.