public class ProcessResult extends Object
ProcessExecutor| Constructor and Description |
|---|
ProcessResult(int exitCode,
ProcessOutput output) |
| Modifier and Type | Method and Description |
|---|---|
int |
exitValue()
Deprecated.
use
getExitValue() |
int |
getExitValue() |
ProcessOutput |
getOutput() |
boolean |
hasOutput() |
byte[] |
output() |
String |
outputString() |
String |
outputString(String charset) |
String |
outputUTF8() |
public ProcessResult(int exitCode,
ProcessOutput output)
public int getExitValue()
public int exitValue()
getExitValue()public boolean hasOutput()
true if the process output was read.public ProcessOutput getOutput()
ProcessExecutor.readOutput(boolean) to set the process output to be read.IllegalStateException - if the output was not read.public byte[] output()
ProcessExecutor.readOutput(boolean) to set the process output to be read.IllegalStateException - if the output was not read.public String outputString()
ProcessExecutor.readOutput(boolean) to set the process output to be read.IllegalStateException - if the output was not read.public String outputUTF8()
ProcessExecutor.readOutput(boolean) to set the process output to be read.IllegalStateException - if the output was not read.public String outputString(String charset)
charset - The name of a supported char set.ProcessExecutor.readOutput(boolean) to set the process output to be read.IllegalStateException - if the output was not read or the char set was not supported.Copyright © 2020 ZeroTurnaround. All rights reserved.