public class WriterOutputHandler extends ReaderWriterPipe implements OutputHandler
Constructor and Description |
---|
WriterOutputHandler(java.io.Writer writer,
java.lang.String tag)
Initializes the writer output handler.
|
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
getInput()
Gets the input stream.
|
void |
setInput(java.io.InputStream input)
Sets the input stream.
|
getReader, getWriter, run, setReader, setWriter
public WriterOutputHandler(java.io.Writer writer, java.lang.String tag)
writer
- the writer to which to write the output of the external
process. May be null
.tag
- a tag for logging. May be null
.public void setInput(java.io.InputStream input)
setInput
in interface OutputHandler
input
- the input stream. May be null
.public java.io.InputStream getInput()
getInput
in interface OutputHandler
null
.