Class OutputCatcher

java.lang.Object
java.lang.Thread
org.h2.test.synth.OutputCatcher
All Implemented Interfaces:
Runnable

public class OutputCatcher extends Thread
Catches the output of another process.
  • Constructor Details

  • Method Details

    • readLine

      public String readLine(long wait)
      Read a line from the output.
      Parameters:
      wait - the maximum number of milliseconds to wait
      Returns:
      the line
    • run

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