Class ConsoleOutputProcessReader

All Implemented Interfaces:
Runnable

public class ConsoleOutputProcessReader extends AbstractProcessReader
Just outputs the data to stdout/stderr.
Version:
$Revision$
  • Field Details

    • PREFIX_STDOUT

      public static String PREFIX_STDOUT
      the default prefix for stdout.
    • PREFIX_STDERR

      public static String PREFIX_STDERR
      the default prefix for stderr.
    • m_Prefix

      protected String m_Prefix
      the prefix to use.
  • Constructor Details

    • ConsoleOutputProcessReader

      public ConsoleOutputProcessReader(boolean stdout)
      Initializes the reader.
      Parameters:
      stdout - whether to read stdout or stderr
    • ConsoleOutputProcessReader

      public ConsoleOutputProcessReader(boolean stdout, String prefix)
      Initializes the reader.
      Parameters:
      stdout - whether to read stdout or stderr
      prefix - the prefix to use, null for auto-prefix
  • Method Details

    • getPrefix

      public String getPrefix()
      Returns the prefix in use.
      Returns:
      the prefix
    • 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