Android Open Source - wolPi Command Result






From Project

Back to project page wolPi.

License

The source code is released under:

Apache License

If you think the Android project wolPi listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package de.matthesrieke.wolpi;
/* www  . jav a2 s.c  o m*/
/**
 * Result of a SSH Command containing
 * stdout, stderr and exit code.
 * 
 * @author matthes rieke
 *
 */
public class CommandResult {

  private String stdout;
  private String stderr;
  private int exitStatus;
  
  
  public CommandResult(String stdout, String stderr, int exitStatus) {
    this.stdout = stdout;
    this.stderr = stderr;
    this.exitStatus = exitStatus;
  }
  
  public String getStdout() {
    return stdout;
  }

  public String getStderr() {
    return stderr;
  }

  public int getExitStatus() {
    return exitStatus;
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append(getClass().getSimpleName());
    sb.append(":");
    sb.append(System.getProperty("line.separator"));
    sb.append("stdout: ");
    sb.append(stdout);
    sb.append(System.getProperty("line.separator"));
    sb.append("stderr: ");
    sb.append(stderr);
    sb.append(System.getProperty("line.separator"));
    sb.append("exit code: ");
    sb.append(exitStatus);
    return sb.toString();
  }
  
}




Java Source Code List

de.matthesrieke.wolpi.CommandResult.java
de.matthesrieke.wolpi.Interactor.java
de.matthesrieke.wolpi.SysoutInteractor.java
de.matthesrieke.wolpi.UserInfoImpl.java
de.matthesrieke.wolpi.WolPiException.java
de.matthesrieke.wolpi.WolPi.java
de.matthesrieke.wolpi.dao.SQLiteSettingsProvider.java
de.matthesrieke.wolpi.settings.HostConfiguration.java
de.matthesrieke.wolpi.settings.SSHConnection.java
de.matthesrieke.wolpi.settings.SettingsProvider.java
de.matthesrieke.wolpi.settings.WolSettings.java
de.matthesrieke.wolpi.ui.ConfirmationDialog.java
de.matthesrieke.wolpi.ui.HostListActivity.java
de.matthesrieke.wolpi.ui.HostManagementActivity.java
de.matthesrieke.wolpi.ui.MainActivity.java
de.matthesrieke.wolpi.ui.TextViewInteractor.java
de.matthesrieke.wolpi.util.AndroidServiceLoader.java