public class ExecIt
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private static class |
ExecIt.StreamPumper |
Modifier and Type | Field and Description |
---|---|
protected POSIXHandler |
handler |
Constructor and Description |
---|
ExecIt(POSIXHandler handler)
Creates a new instance of ShellLauncher
|
Modifier and Type | Method and Description |
---|---|
private void |
handleStreams(java.lang.Process p,
java.io.InputStream in,
java.io.OutputStream out,
java.io.OutputStream err) |
java.lang.Process |
run(java.lang.String... args) |
int |
runAndWait(java.io.OutputStream output,
java.io.OutputStream error,
java.lang.String... args) |
int |
runAndWait(java.io.OutputStream output,
java.lang.String... args) |
int |
runAndWait(java.lang.String... args) |
protected final POSIXHandler handler
public ExecIt(POSIXHandler handler)
handler
- the POSIXHandler
to usepublic int runAndWait(java.lang.String... args) throws java.io.IOException, java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
public int runAndWait(java.io.OutputStream output, java.lang.String... args) throws java.io.IOException, java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
public int runAndWait(java.io.OutputStream output, java.io.OutputStream error, java.lang.String... args) throws java.io.IOException, java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
public java.lang.Process run(java.lang.String... args) throws java.io.IOException
java.io.IOException
private void handleStreams(java.lang.Process p, java.io.InputStream in, java.io.OutputStream out, java.io.OutputStream err) throws java.io.IOException
java.io.IOException