Class ProcessStreamListener

java.lang.Object
org.opentestfactory.utils.process.ProcessStreamListener
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
ProcessLogger

public abstract class ProcessStreamListener extends Object implements Runnable
This class listens to a process output stream in a separate thread in order to get its output AND proceed on other treatments while the process is running.
  • Constructor Details

    • ProcessStreamListener

      public ProcessStreamListener(Process process, OutputStream targetStream)
  • Method Details

    • start

      public void start()
    • run

      public void run()
      Specified by:
      run in interface Runnable
    • commitOutputLine

      protected abstract void commitOutputLine(String osString)