Package org.biojava.utils.process
Class WriterOutputHandler
java.lang.Object
org.biojava.utils.process.ReaderWriterPipe
org.biojava.utils.process.WriterOutputHandler
- All Implemented Interfaces:
Runnable
,OutputHandler
Simple output handler
that writes the output of an external process to an
writer.
- Version:
- $Revision$
- Author:
- Martin Szugat
-
Constructor Summary
ConstructorsConstructorDescriptionWriterOutputHandler
(Writer writer, String tag) Initializes the writer output handler. -
Method Summary
Modifier and TypeMethodDescriptiongetInput()
Gets the input stream.void
setInput
(InputStream input) Sets the input stream.Methods inherited from class org.biojava.utils.process.ReaderWriterPipe
getReader, getWriter, run, setReader, setWriter
-
Constructor Details
-
WriterOutputHandler
Initializes the writer output handler.- Parameters:
writer
- the writer to which to write the output of the external process. May benull
.tag
- a tag for logging. May benull
.
-
-
Method Details
-
setInput
Sets the input stream. The output of the external process is written to this input stream.- Specified by:
setInput
in interfaceOutputHandler
- Parameters:
input
- the input stream. May benull
.
-
getInput
Gets the input stream. The output of the external process is written to this input stream.- Specified by:
getInput
in interfaceOutputHandler
- Returns:
- the input stream. May be
null
.
-