public class PumpStreamHandler extends java.lang.Object implements ExecuteStreamHandler
构造器和说明 |
---|
PumpStreamHandler()
Construct a new
PumpStreamHandler . |
PumpStreamHandler(java.io.OutputStream outAndErr)
Construct a new
PumpStreamHandler . |
PumpStreamHandler(java.io.OutputStream out,
java.io.OutputStream err)
Construct a new
PumpStreamHandler . |
PumpStreamHandler(java.io.OutputStream out,
java.io.OutputStream err,
java.io.InputStream input)
Construct a new
PumpStreamHandler . |
限定符和类型 | 方法和说明 |
---|---|
void |
setProcessErrorStream(java.io.InputStream is)
Set the
InputStream from which to read the standard error
of the process. |
void |
setProcessInputStream(java.io.OutputStream os)
Set the
OutputStream by means of which input can be sent
to the process. |
void |
setProcessOutputStream(java.io.InputStream is)
Set the
InputStream from which to read the standard output
of the process. |
void |
start()
Start the
Thread s. |
void |
stop()
Stop pumping the streams.
|
public PumpStreamHandler()
PumpStreamHandler
.public PumpStreamHandler(java.io.OutputStream outAndErr)
PumpStreamHandler
.outAndErr
- the output/error OutputStream
.public PumpStreamHandler(java.io.OutputStream out, java.io.OutputStream err)
PumpStreamHandler
.out
- the output OutputStream
.err
- the error OutputStream
.public PumpStreamHandler(java.io.OutputStream out, java.io.OutputStream err, java.io.InputStream input)
PumpStreamHandler
.out
- the output OutputStream
.err
- the error OutputStream
.input
- the input InputStream
.public void setProcessOutputStream(java.io.InputStream is)
InputStream
from which to read the standard output
of the process.setProcessOutputStream
在接口中 ExecuteStreamHandler
is
- the InputStream
.public void setProcessErrorStream(java.io.InputStream is)
InputStream
from which to read the standard error
of the process.setProcessErrorStream
在接口中 ExecuteStreamHandler
is
- the InputStream
.public void setProcessInputStream(java.io.OutputStream os)
OutputStream
by means of which input can be sent
to the process.setProcessInputStream
在接口中 ExecuteStreamHandler
os
- the OutputStream
.public void start()
Thread
s.start
在接口中 ExecuteStreamHandler
public void stop()
stop
在接口中 ExecuteStreamHandler