Class CollectingLogOutputStream

  • All Implemented Interfaces:
    Closeable, Flushable, AutoCloseable

    public class CollectingLogOutputStream
    extends org.apache.commons.exec.LogOutputStream
    Helper class to collectect the output of a command execution.
    • Constructor Detail

      • CollectingLogOutputStream

        public CollectingLogOutputStream()
      • CollectingLogOutputStream

        public CollectingLogOutputStream​(List<String> lines)
    • Method Detail

      • processLine

        protected void processLine​(String line,
                                   int level)
        Specified by:
        processLine in class org.apache.commons.exec.LogOutputStream
      • getMessage

        public String getMessage()