接口 ExecuteStreamHandler
- 所有已知实现类:
PumpStreamHandler
public interface ExecuteStreamHandler
Description:
Title:首亨软件 - CRM、TSS、ERP等信息化管理软件
-
方法概要
修饰符和类型方法说明voidInstall a handler for the error stream of the subprocess.voidInstall a handler for the input stream of the subprocess.voidInstall a handler for the output stream of the subprocess.voidstart()Start handling of the streams.voidstop()Stop handling of the streams - will not be restarted.
-
方法详细资料
-
setProcessInputStream
Install a handler for the input stream of the subprocess.- 参数:
os- output stream to write to the standard input stream of the subprocess- 抛出:
IOException- IOException
-
setProcessErrorStream
Install a handler for the error stream of the subprocess.- 参数:
is- input stream to read from the error stream from the subprocess- 抛出:
IOException- IOException
-
setProcessOutputStream
Install a handler for the output stream of the subprocess.- 参数:
is- input stream to read from the error stream from the subprocess- 抛出:
IOException- IOException
-
start
Start handling of the streams.- 抛出:
IOException- IOException
-
stop
void stop()Stop handling of the streams - will not be restarted. Will wait for pump threads to complete.
-