Class StreamingProcessReader

  • All Implemented Interfaces:
    java.lang.Runnable

    public class StreamingProcessReader
    extends AbstractProcessReader
    Forwards the output from the process to the owning StreamingProcessOwner object, if appropriate.
    Author:
    FracPete (fracpete at waikato dot ac dot nz)
    • Field Detail

      • m_Forward

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

      • StreamingProcessReader

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

      • process

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