Class ConvenientProcess

java.lang.Object
java.lang.Thread
de.saar.convenientprocess.ConvenientProcess
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
ReadyProcess

public class ConvenientProcess extends Thread
  • Field Details

    • process

      protected Process process
    • bOut

      protected de.saar.convenientprocess.InputBufferingThread bOut
    • bErr

      protected de.saar.convenientprocess.InputBufferingThread bErr
  • Constructor Details

    • ConvenientProcess

      public ConvenientProcess(String cmd)
    • ConvenientProcess

      public ConvenientProcess(String cmd, String dir)
    • ConvenientProcess

      public ConvenientProcess(String[] cmdarray, String dir)
  • Method Details

    • run

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

      public OutputStream stdin()
    • println

      public void println(String s)
    • closeWritingPipe

      public void closeWritingPipe()
    • readLineStdout

      public String readLineStdout()
    • readLineStderr

      public String readLineStderr()
    • readyStdout

      public boolean readyStdout()
    • readyStderr

      public boolean readyStderr()
    • destroy

      public void destroy()
    • exitValue

      public int exitValue()
    • setOutputLog

      public void setOutputLog(String filename)
    • setInputLog

      public void setInputLog(String filename)
    • setDebug

      public void setDebug(boolean debug)
    • waitForAndCleanup

      protected void waitForAndCleanup()
    • startupThreads

      protected void startupThreads()
    • cleanupStreams

      protected void cleanupStreams()