Package jnr.posix.util
Class ExecIt
java.lang.Object
jnr.posix.util.ExecIt
- Direct Known Subclasses:
JavaLibCHelper.PosixExec
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
handleStreams
(Process p, InputStream in, OutputStream out, OutputStream err) int
runAndWait
(OutputStream output, OutputStream error, String... args) int
runAndWait
(OutputStream output, String... args) int
runAndWait
(String... args)
-
Field Details
-
handler
-
-
Constructor Details
-
ExecIt
Creates a new instance of ShellLauncher- Parameters:
handler
- thePOSIXHandler
to use
-
-
Method Details
-
runAndWait
- Throws:
IOException
InterruptedException
-
runAndWait
- Throws:
IOException
InterruptedException
-
runAndWait
public int runAndWait(OutputStream output, OutputStream error, String... args) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
run
- Throws:
IOException
-
handleStreams
private void handleStreams(Process p, InputStream in, OutputStream out, OutputStream err) throws IOException - Throws:
IOException
-