public class ReaderInputHandler extends ReaderWriterPipe implements InputHandler
Constructor and Description |
---|
ReaderInputHandler(Reader reader,
String tag)
Initializes the reader input handler.
|
Modifier and Type | Method and Description |
---|---|
OutputStream |
getOutput()
Gets the output stream.
|
void |
run() |
void |
setOutput(OutputStream output)
Sets the output stream.
|
getReader, getWriter, setReader, setWriter
public ReaderInputHandler(Reader reader, 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(OutputStream output)
setOutput
in interface InputHandler
output
- the output stream. May be null
.public OutputStream getOutput()
getOutput
in interface InputHandler
null
.public void run()
run
in interface Runnable
run
in class ReaderWriterPipe
Copyright © 2014 BioJava. All rights reserved.