Package jnr.posix
Class JavaLibCHelper.PosixExec
- java.lang.Object
-
- jnr.posix.util.ExecIt
-
- jnr.posix.JavaLibCHelper.PosixExec
-
- Enclosing class:
- JavaLibCHelper
private static class JavaLibCHelper.PosixExec extends ExecIt
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.concurrent.atomic.AtomicReference<jnr.constants.platform.Errno>
errno
private JavaLibCHelper.ErrnoParsingOutputStream
errorStream
-
Constructor Summary
Constructors Constructor Description PosixExec(POSIXHandler handler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private int
parseResult(int result)
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)
-
-
-
Field Detail
-
errno
private final java.util.concurrent.atomic.AtomicReference<jnr.constants.platform.Errno> errno
-
errorStream
private final JavaLibCHelper.ErrnoParsingOutputStream errorStream
-
-
Constructor Detail
-
PosixExec
public PosixExec(POSIXHandler handler)
-
-
Method Detail
-
parseResult
private int parseResult(int result)
-
runAndWait
public int runAndWait(java.lang.String... args) throws java.io.IOException, java.lang.InterruptedException
- Overrides:
runAndWait
in classExecIt
- Throws:
java.io.IOException
java.lang.InterruptedException
-
runAndWait
public int runAndWait(java.io.OutputStream output, java.lang.String... args) throws java.io.IOException, java.lang.InterruptedException
- Overrides:
runAndWait
in classExecIt
- Throws:
java.io.IOException
java.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
- Overrides:
runAndWait
in classExecIt
- Throws:
java.io.IOException
java.lang.InterruptedException
-
-