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