public class CommandExecutorResponse extends Object implements Serializable
| Constructor and Description |
|---|
CommandExecutorResponse() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
stderrHasText()
Check whether stderr has text or not.
|
String |
stderrToOneLine()
Stderr to one line.
|
boolean |
stdoutHasText()
Check whether stdout has text or not.
|
String |
stdoutToOneLine()
Stdout to one line.
|
static String |
toExceptionMessage(CommandExecutorResponse response)
Return
toOneLine() if response is not null. |
String |
toOneLine()
Returns stdout and stderr in one line.
|
public static String toExceptionMessage(CommandExecutorResponse response)
toOneLine() if response is not null.response - the response (can be null)public boolean stdoutHasText()
true if stdout has text, otherwise falsepublic boolean stderrHasText()
true if stderr has text, otherwise falsepublic String toOneLine()
public String stdoutToOneLine()
public String stderrToOneLine()
Copyright © 2020 bremersee.org. All rights reserved.