Class CollectingProcessReader

All Implemented Interfaces:
Runnable

public class CollectingProcessReader extends AbstractProcessReader
Reader for storing all content.
  • Field Details

    • m_Content

      protected StringBuilder m_Content
      the string builder to store the data in.
  • Constructor Details

    • CollectingProcessReader

      public CollectingProcessReader(boolean stdout, StringBuilder content)
      Initializes the reader.
      Parameters:
      stdout - whether to read stdout or stderr
      content - for storing the content
  • Method Details

    • getContent

      public StringBuilder getContent()
      Returns the string builder for storing the content.
      Returns:
      the string builder
    • 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