Class StreamingProcessReader

All Implemented Interfaces:
Runnable

public class StreamingProcessReader extends AbstractProcessReader
Forwards the output from the process to the owning StreamingProcessOwner object, if appropriate.
  • Field Details

    • m_Owner

      protected StreamingProcessOwner m_Owner
      the owner.
    • m_Forward

      protected boolean m_Forward
      whether to forward the output to the owner.
  • Constructor Details

    • StreamingProcessReader

      public StreamingProcessReader(StreamingProcessOwner owner, boolean stdout)
      Initializes the reader.
      Parameters:
      owner - the owning object
      stdout - whether to read stdout or stderr
  • Method Details

    • process

      protected void process(String line)
      For processing the line read from stdout/stderr.
      Specified by:
      process in class AbstractProcessReader
      Parameters:
      line - the output line