Class WriterOutputHandler

java.lang.Object
org.biojava.utils.process.ReaderWriterPipe
org.biojava.utils.process.WriterOutputHandler
All Implemented Interfaces:
Runnable, OutputHandler

public class WriterOutputHandler extends ReaderWriterPipe implements OutputHandler
Simple output handler that writes the output of an external process to an writer.
Version:
$Revision$
Author:
Martin Szugat
  • Constructor Details

    • WriterOutputHandler

      public WriterOutputHandler(Writer writer, String tag)
      Initializes the writer output handler.
      Parameters:
      writer - the writer to which to write the output of the external process. May be null.
      tag - a tag for logging. May be null.
  • Method Details

    • setInput

      public void setInput(InputStream input)
      Sets the input stream. The output of the external process is written to this input stream.
      Specified by:
      setInput in interface OutputHandler
      Parameters:
      input - the input stream. May be null.
    • getInput

      Gets the input stream. The output of the external process is written to this input stream.
      Specified by:
      getInput in interface OutputHandler
      Returns:
      the input stream. May be null.