|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.objectledge.external.ExecutionResult
public class ExecutionResult
Represents the result of script execution.
| Field Summary | |
|---|---|
private static int |
BUFFER_SIZE
|
private byte[] |
error
|
private int |
exitValue
|
private byte[] |
output
|
| Constructor Summary | |
|---|---|
ExecutionResult(int exitValue)
Creates a new ExecutionResult instance. |
|
ExecutionResult(int exitValue,
byte[] output,
byte[] error)
Creates a new ExecutionResult instance. |
|
| Method Summary | |
|---|---|
String |
getError()
Returns the data captured from process error stream as an UTF-8 string. |
String |
getError(String charset)
Returns the data captured from process error stream as a string. |
byte[] |
getErrorBytes()
Returns the data captured from process error stream as bytes. |
int |
getExitValue()
Returns the process exit value. |
String |
getOutput()
Returns the data captured from process output stream as an UTF-8 string. |
String |
getOutput(String charset)
Returns the data captured from process output stream as a string. |
byte[] |
getOutputBytes()
Returns the data captured from process output stream as bytes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final int BUFFER_SIZE
private final int exitValue
private final byte[] output
private final byte[] error
| Constructor Detail |
|---|
public ExecutionResult(int exitValue,
byte[] output,
byte[] error)
exitValue - the exit value of the process.captured - output stream the process, or null if not available.captured - error stream the process, or null if not available.public ExecutionResult(int exitValue)
exitValue - process exit value.| Method Detail |
|---|
public int getExitValue()
public byte[] getOutputBytes()
public String getOutput(String charset)
throws UnsupportedEncodingException
charset - output stream encoding.
UnsupportedEncodingException - if the encoding is not supported by the VM.public String getOutput()
public byte[] getErrorBytes()
public String getError(String charset)
throws UnsupportedEncodingException
charset - output stream encoding.
UnsupportedEncodingException - if the encoding is not supported by the VM.public String getError()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||