Package jnr.posix.util
Class ExecIt
- java.lang.Object
-
- jnr.posix.util.ExecIt
-
- Direct Known Subclasses:
JavaLibCHelper.PosixExec
public class ExecIt extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classExecIt.StreamPumper
-
Field Summary
Fields Modifier and Type Field Description protected POSIXHandlerhandler
-
Constructor Summary
Constructors Constructor Description ExecIt(POSIXHandler handler)Creates a new instance of ShellLauncher
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidhandleStreams(java.lang.Process p, java.io.InputStream in, java.io.OutputStream out, java.io.OutputStream err)java.lang.Processrun(java.lang.String... args)intrunAndWait(java.io.OutputStream output, java.io.OutputStream error, java.lang.String... args)intrunAndWait(java.io.OutputStream output, java.lang.String... args)intrunAndWait(java.lang.String... args)
-
-
-
Field Detail
-
handler
protected final POSIXHandler handler
-
-
Constructor Detail
-
ExecIt
public ExecIt(POSIXHandler handler)
Creates a new instance of ShellLauncher- Parameters:
handler- thePOSIXHandlerto use
-
-
Method Detail
-
runAndWait
public int runAndWait(java.lang.String... args) throws java.io.IOException, java.lang.InterruptedException- Throws:
java.io.IOExceptionjava.lang.InterruptedException
-
runAndWait
public int runAndWait(java.io.OutputStream output, java.lang.String... args) throws java.io.IOException, java.lang.InterruptedException- Throws:
java.io.IOExceptionjava.lang.InterruptedException
-
runAndWait
public int runAndWait(java.io.OutputStream output, java.io.OutputStream error, java.lang.String... args) throws java.io.IOException, java.lang.InterruptedException- Throws:
java.io.IOExceptionjava.lang.InterruptedException
-
run
public java.lang.Process run(java.lang.String... args) throws java.io.IOException- Throws:
java.io.IOException
-
handleStreams
private void handleStreams(java.lang.Process p, java.io.InputStream in, java.io.OutputStream out, java.io.OutputStream err) throws java.io.IOException- Throws:
java.io.IOException
-
-