public class ReaderInputHandler extends ReaderWriterPipe implements InputHandler
Constructor and Description |
---|
ReaderInputHandler(java.io.Reader reader,
java.lang.String tag)
Initializes the reader input handler.
|
Modifier and Type | Method and Description |
---|---|
java.io.OutputStream |
getOutput()
Gets the output stream.
|
void |
run() |
void |
setOutput(java.io.OutputStream output)
Sets the output stream.
|
getReader, getWriter, setReader, setWriter
public ReaderInputHandler(java.io.Reader reader, java.lang.String tag)
reader
- the reader from which to read the input for the external
process. May be null
.tag
- a tag for logging. May be null
.public void setOutput(java.io.OutputStream output)
setOutput
in interface InputHandler
output
- the output stream. May be null
.public java.io.OutputStream getOutput()
getOutput
in interface InputHandler
null
.public void run()
run
in interface java.lang.Runnable
run
in class ReaderWriterPipe