|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.biojava.utils.process.ReaderWriterPipe
org.biojava.utils.process.ReaderInputHandler
public class ReaderInputHandler
Reader input handler that reads the input for an external process from a reader. The output stream for the input of the external process is closed after the reader is read to its end.
Constructor Summary | |
---|---|
ReaderInputHandler(Reader reader,
String tag)
Initializes the reader input handler. |
Method Summary | |
---|---|
OutputStream |
getOutput()
Gets the output stream. |
void |
run()
|
void |
setOutput(OutputStream output)
Sets the output stream. |
Methods inherited from class org.biojava.utils.process.ReaderWriterPipe |
---|
getReader, getWriter, setReader, setWriter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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
.Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |