Class AbstractProcessReader

    • Field Detail

      • m_Stdout

        protected boolean m_Stdout
        whether to use stdout or stderr.
      • m_Reader

        protected java.io.BufferedReader m_Reader
        the reader use internally.
    • Constructor Detail

      • AbstractProcessReader

        public AbstractProcessReader​(boolean stdout)
        Initializes the reader.
        Parameters:
        stdout - whether to read stdout or stderr
    • Method Detail

      • isStdout

        public boolean isStdout()
        Returns whether the reader is for stdout or stderr.
        Returns:
        true if for stdout
      • process

        protected abstract void process​(java.lang.String line)
        For processing the line read from stdout/stderr.
        Parameters:
        line - the output line
      • flush

        public void flush()
        Flushes the data.