Package org.jruby.util
Class ShellLauncher.POpenProcess
java.lang.Object
java.lang.Process
org.jruby.util.ShellLauncher.POpenProcess
- Enclosing class:
- ShellLauncher
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Processprivate InputStreamprivate FileChannelprivate ShellLauncher.Pumperprivate InputStreamprivate FileChannelprivate ShellLauncher.Pumperprivate OutputStreamprivate FileChannelprivate InputStreamprivate InputStreamprivate OutputStreamprivate final boolean -
Constructor Summary
ConstructorsConstructorDescriptionPOpenProcess(Process child) POpenProcess(Process child, Ruby runtime, IOOptions modes) Deprecated.POpenProcess(Process child, Ruby runtime, ModeFlags modes) -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()intgetChild()getError()getInput()booleanprivate voidprepareInerr(Process child) private voidprepareInput(Process child) private voidprepareOutput(Process child) private voidprivate voidintwaitFor()Methods inherited from class java.lang.Process
children, descendants, destroyForcibly, errorReader, errorReader, info, inputReader, inputReader, isAlive, onExit, outputWriter, outputWriter, pid, supportsNormalTermination, toHandle, waitFor
-
Field Details
-
child
-
waitForChild
private final boolean waitForChild -
realInput
-
realOutput
-
realInerr
-
input
-
output
-
inerr
-
inputChannel
-
outputChannel
-
inerrChannel
-
inputPumper
-
inerrPumper
-
-
Constructor Details
-
POpenProcess
Deprecated. -
POpenProcess
-
POpenProcess
-
-
Method Details
-
getOutputStream
- Specified by:
getOutputStreamin classProcess
-
getInputStream
- Specified by:
getInputStreamin classProcess
-
getErrorStream
- Specified by:
getErrorStreamin classProcess
-
getInput
-
getOutput
-
getError
-
hasOutput
public boolean hasOutput() -
getChild
-
waitFor
- Specified by:
waitForin classProcess- Throws:
InterruptedException
-
exitValue
public int exitValue() -
destroy
public void destroy() -
prepareInput
-
prepareInerr
-
prepareOutput
-
pumpInput
-
pumpInerr
-