Class RecordingOutputPrinter

  • All Implemented Interfaces:
    LoggingObjectOwner

    public class RecordingOutputPrinter
    extends LoggingObjectOutputPrinter
    Output printer that records the output.
    Version:
    $Revision$
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    • Field Detail

      • m_Buffer

        protected StringBuilder m_Buffer
        the buffer for recording the output.
    • Constructor Detail

      • RecordingOutputPrinter

        public RecordingOutputPrinter​(boolean stdout,
                                      Process process)
        Initializes the printer.
        Parameters:
        stdout - whether to use stdout or stderr
        process - the process to monitor
    • Method Detail

      • initialize

        protected void initialize​(boolean stdout,
                                  Process process)
        Initializes the printer.
        Overrides:
        initialize in class LoggingObjectOutputPrinter
        Parameters:
        stdout - whether to use stdout or stderr
        process - the process to monitor
      • getRecording

        public String getRecording()
        Returns the recorded output.
        Returns:
        the output