Exemplo n.º 1
0
 /**
  * Returns the stdout from the command as a List of Strings where each String is one line of the
  * output.
  *
  * @return The standard output of the command as a <code>List</code> of output lines.
  */
 public List<String> getStdoutAsList() {
   return stdOutGobbler != null ? stdOutGobbler.getStreamDataAsList() : null;
 }
Exemplo n.º 2
0
 /**
  * Returns the stderr from the command as a List of Strings where each String is one line of the
  * error.
  *
  * @return The standard error of the command as a <code>List</code> of output lines.
  */
 public List<String> getStderrAsList() {
   return stdErrGobbler != null ? stdErrGobbler.getStreamDataAsList() : null;
 }