public class CommandReturn extends Object
Constructor and Description |
---|
CommandReturn(int code,
String output)
Creates object from the contents.
|
CommandReturn(int code,
String[] cmd,
String output)
Creates object from the contents.
|
Modifier and Type | Method and Description |
---|---|
String[] |
getCmd()
Gets the command run.
|
int |
getExitCode()
Gets the exit code.
|
String |
getFormattedOutput()
Formats the object to more readable format.
|
String |
getOutput()
Gets the stdout content.
|
public CommandReturn(int code, String output)
code
- exit codeoutput
- stdout contentpublic int getExitCode()
public String[] getCmd()
public String getOutput()
public String getFormattedOutput()
Copyright © 2023. All Rights Reserved.