public enum InputRedirect extends Enum<InputRedirect>
| Enum Constant and Description |
|---|
BINARY
Sets the subprocess input as the
ProcessConfiguration.getInputBinary() binary. |
FILE
Sets the subprocess input as the
ProcessConfiguration.getInputFile() file specified as the
filename. |
INHERIT
Sets the source for subprocess standard input to be the same as those of the current Java process.
|
PIPE
Indicates that subprocess standard input will be connected to the current Java process over a pipe.
|
STREAM
Sets the subprocess input as a stream.
|
STRING
Sets the subprocess input as the
ProcessConfiguration.getInputString() string. |
| Modifier and Type | Method and Description |
|---|---|
static InputRedirect |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static InputRedirect[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InputRedirect PIPE
public static final InputRedirect INHERIT
public static final InputRedirect STRING
ProcessConfiguration.getInputString() string.public static final InputRedirect BINARY
ProcessConfiguration.getInputBinary() binary.public static final InputRedirect FILE
ProcessConfiguration.getInputFile() file specified as the
filename.public static final InputRedirect STREAM
PIPE that makes easier writing to and closing the subprocess
standard input ProcessInstance.getInput() after start. Then you
should invoke manually ProcessInstance.waitForReady().public static InputRedirect[] values()
for (InputRedirect c : InputRedirect.values()) System.out.println(c);
public static InputRedirect valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2016–2020 Softelnet. All rights reserved.