public enum OutputRedirect extends Enum<OutputRedirect>
| Enum Constant and Description |
|---|
BINARY
Writes all subprocess standard output to the
ProcessInstance.getOutputBinary() byte array. |
CONSUMER
Sends a subprocess standard output as text lines to a line consumer (if set).
|
FILE
Writes all subprocess standard output to the
ProcessConfiguration.getOutputFile() file. |
INHERIT
Sets the destination for subprocess standard output to be the same as those of the current Java process.
|
PIPE
Indicates that subprocess standard output will be connected to the current Java process over a pipe.
|
STRING
Writes all subprocess standard output to the
ProcessInstance.getOutputString() string. |
| Modifier and Type | Method and Description |
|---|---|
static OutputRedirect |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OutputRedirect[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OutputRedirect PIPE
public static final OutputRedirect INHERIT
public static final OutputRedirect STRING
ProcessInstance.getOutputString() string. The
thread that started the subprocess will wait for the subprocess to exit.public static final OutputRedirect BINARY
ProcessInstance.getOutputBinary() byte array.
The thread that started the subprocess will wait for the subprocess to exit.public static final OutputRedirect FILE
ProcessConfiguration.getOutputFile() file. The
thread that started the subprocess will wait for the subprocess to exit.public static final OutputRedirect CONSUMER
public static OutputRedirect[] values()
for (OutputRedirect c : OutputRedirect.values()) System.out.println(c);
public static OutputRedirect 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–2019 Softelnet. All rights reserved.