Class ReaderInputHandler

    • Constructor Summary

      Constructors 
      Constructor Description
      ReaderInputHandler​(java.io.Reader reader, java.lang.String tag)
      Initializes the reader input handler.
    • Constructor Detail

      • ReaderInputHandler

        public ReaderInputHandler​(java.io.Reader reader,
                                  java.lang.String tag)
        Initializes the reader input handler.
        Parameters:
        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

      • setOutput

        public void setOutput​(java.io.OutputStream output)
        Sets the output stream. The input for the external process is read from this output stream.
        Specified by:
        setOutput in interface InputHandler
        Parameters:
        output - the output stream. May be null.
      • getOutput

        public java.io.OutputStream getOutput()
        Gets the output stream. The input for the external process is read from this output stream.
        Specified by:
        getOutput in interface InputHandler
        Returns:
        the output stream. May be null.
      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
        Overrides:
        run in class ReaderWriterPipe