Class SubprocessOutputCopier

java.lang.Object
org.ka2ddo.yaac.io.SubprocessOutputCopier
All Implemented Interfaces:
Runnable

public class SubprocessOutputCopier extends Object implements Runnable
This class provides a Runnable for copying a stream to another stream, typically the standard output and standard error of a launched subprocess.
Author:
Andrew Pavlin, KA2DDO
  • Constructor Details

    • SubprocessOutputCopier

      public SubprocessOutputCopier(InputStream in, OutputStream out)
      Create the SubprocessOutputCopier for a pair of InputStream and OutputStream.
      Parameters:
      in - the InputStream to read
      out - the OutputStream to write the data read from the InputStream
  • Method Details

    • run

      public void run()
      DO NOT CALL. Thread body for this Runnable.
      Specified by:
      run in interface Runnable