jnr.posix.util
Class ExecIt

java.lang.Object
  extended by jnr.posix.util.ExecIt

public class ExecIt
extends Object


Field Summary
protected  POSIXHandler handler
           
 
Constructor Summary
ExecIt(POSIXHandler handler)
          Creates a new instance of ShellLauncher
 
Method Summary
 Process run(String... args)
           
 int runAndWait(OutputStream output, OutputStream error, String... args)
           
 int runAndWait(OutputStream output, String... args)
           
 int runAndWait(String... args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

handler

protected final POSIXHandler handler
Constructor Detail

ExecIt

public ExecIt(POSIXHandler handler)
Creates a new instance of ShellLauncher

Method Detail

runAndWait

public int runAndWait(String... args)
               throws IOException,
                      InterruptedException
Throws:
IOException
InterruptedException

runAndWait

public int runAndWait(OutputStream output,
                      String... args)
               throws IOException,
                      InterruptedException
Throws:
IOException
InterruptedException

runAndWait

public int runAndWait(OutputStream output,
                      OutputStream error,
                      String... args)
               throws IOException,
                      InterruptedException
Throws:
IOException
InterruptedException

run

public Process run(String... args)
            throws IOException
Throws:
IOException


Copyright © 2014. All Rights Reserved.