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>errnoprivate JavaLibCHelper.ErrnoParsingOutputStreamerrorStream
-
Constructor Summary
Constructors Constructor Description PosixExec(POSIXHandler handler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private intparseResult(int result)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
-
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:
runAndWaitin classExecIt- 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- Overrides:
runAndWaitin classExecIt- 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- Overrides:
runAndWaitin classExecIt- Throws:
java.io.IOExceptionjava.lang.InterruptedException
-
-