Class LoggingStdReader<T>

java.lang.Object
com.github.kokorin.jaffree.process.LoggingStdReader<T>
Type Parameters:
T - type of parsed result
All Implemented Interfaces:
StdReader<T>

public class LoggingStdReader<T> extends Object implements StdReader<T>
StdReader implementation which reads and logs everything been read.
  • Constructor Details

    • LoggingStdReader

      public LoggingStdReader()
  • Method Details

    • read

      public T read(InputStream stdOut)
      Description copied from interface: StdReader
      Reads program stdout or stderr and returns parsed result.
      Specified by:
      read in interface StdReader<T>
      Parameters:
      stdOut - stream to read from
      Returns:
      null
    • getErrorLogMessages

      public List<LogMessage> getErrorLogMessages()
      Get the list of error messages produced by the running process.
      Specified by:
      getErrorLogMessages in interface StdReader<T>
      Returns:
      error messages