public abstract class AbstractExecuteStreamHandler extends Object implements ExecuteStreamHandler
| 限定符和类型 | 字段和说明 |
|---|---|
protected InputStream |
subProcessErrorOutputStream
使用该 input,用于读取 子进程的错误输出
由于输出可以被重定向,所以该值有可能是 null
|
protected OutputStream |
subProcessInput
使用该 output,用于将数据写给子进程
|
protected InputStream |
subProcessOutputStream
使用该 input,用于读取 子进程的正常输出
由于输出可以被重定向,所以该值有可能是 null
|
| 构造器和说明 |
|---|
AbstractExecuteStreamHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
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 |
stop()
Stop handling of the streams - will not be restarted.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitstartprotected OutputStream subProcessInput
@Nullable protected InputStream subProcessOutputStream
由于输出可以被重定向,所以该值有可能是 null
@Nullable protected InputStream subProcessErrorOutputStream
由于输出可以被重定向,所以该值有可能是 null
public void setSubProcessInputStream(OutputStream os) throws IOException
ExecuteStreamHandlersetSubProcessInputStream 在接口中 ExecuteStreamHandleros - output stream to write to the standard input stream of the subprocessIOException - thrown when an I/O exception occurs.public void setSubProcessErrorStream(InputStream is) throws IOException
ExecuteStreamHandlersetSubProcessErrorStream 在接口中 ExecuteStreamHandleris - input stream to read from the error stream from the subprocessIOException - thrown when an I/O exception occurs.public void setSubProcessOutputStream(InputStream is) throws IOException
ExecuteStreamHandlersetSubProcessOutputStream 在接口中 ExecuteStreamHandleris - input stream to read from the error stream from the subprocessIOException - thrown when an I/O exception occurs.public void stop()
throws IOException
ExecuteStreamHandlerstop 在接口中 ExecuteStreamHandlerIOException - thrown when an I/O exception occurs.Copyright © 2022. All rights reserved.