public final class CommandResult
extends Object
-
Constructor Summary
Constructors
-
Method Summary
int
Gets the exit code of the command.
Gets the standard error of the command.
Gets the standard output of the command.
-
Constructor Details
-
CommandResult
public CommandResult(int code,
String standardOutput,
String standardError)
-
Method Details
-
code
public int code()
Gets the exit code of the command.
- Returns:
- the exit code
-
standardOutput
public String standardOutput()
Gets the standard output of the command.
- Returns:
- the standard output
-
standardError
Gets the standard error of the command.
- Returns:
- the standard error
-