Class StreamGobbler

  • All Implemented Interfaces:
    Runnable

    public class StreamGobbler
    extends Thread
    Utility class for consuming an InputStream and redirecting the output to System.out
    • Constructor Detail

      • StreamGobbler

        public StreamGobbler​(InputStream inStream,
                             String procID,
                             org.slf4j.Logger outLog)
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface Runnable
        Overrides:
        run in class Thread
      • terminate

        public void terminate()