Class GobblingStdReader<T>

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

public class GobblingStdReader<T> extends Object implements StdReader<T>
StdReader implementation which reads and ignores bytes read.
  • Constructor Details

    • GobblingStdReader

      public GobblingStdReader()
  • Method Details

    • read

      public T read(InputStream stdOut)
      Reads and ignores bytes read.
      Specified by:
      read in interface StdReader<T>
      Parameters:
      stdOut - input 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