Class Exec.OutputBufferThread

java.lang.Object
java.lang.Thread
org.apache.hadoop.maven.plugin.util.Exec.OutputBufferThread
All Implemented Interfaces:
Runnable
Enclosing class:
Exec

public static class Exec.OutputBufferThread extends Thread
OutputBufferThread is a background thread for consuming and storing output of the external process.
  • Constructor Details

    • OutputBufferThread

      public OutputBufferThread(InputStream is)
      Creates a new OutputBufferThread to consume the given InputStream.
      Parameters:
      is - InputStream to consume
  • Method Details

    • run

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

      public List<String> getOutput()
      Get every line consumed from the input.
      Returns:
      Every line consumed from the input