com.stericson.RootTools.execution
Class JavaCommandCapture

java.lang.Object
  extended by com.stericson.RootTools.execution.Command
      extended by com.stericson.RootTools.execution.JavaCommandCapture

public class JavaCommandCapture
extends Command


Constructor Summary
JavaCommandCapture(int id, boolean handlerEnabled, android.content.Context context, java.lang.String... command)
           
JavaCommandCapture(int id, android.content.Context context, java.lang.String... command)
           
JavaCommandCapture(int id, int timeout, android.content.Context context, java.lang.String... command)
           
 
Method Summary
 void commandCompleted(int id, int exitCode)
           
 void commandOutput(int id, java.lang.String line)
           
 void commandTerminated(int id, java.lang.String reason)
           
 java.lang.String toString()
           
 
Methods inherited from class com.stericson.RootTools.execution.Command
commandFinished, finishCommand, getCommand, getExitCode, isExecuting, isFinished, isHandlerEnabled, output, setExitCode, startExecution, terminate, terminated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JavaCommandCapture

public JavaCommandCapture(int id,
                          android.content.Context context,
                          java.lang.String... command)

JavaCommandCapture

public JavaCommandCapture(int id,
                          boolean handlerEnabled,
                          android.content.Context context,
                          java.lang.String... command)

JavaCommandCapture

public JavaCommandCapture(int id,
                          int timeout,
                          android.content.Context context,
                          java.lang.String... command)
Method Detail

commandOutput

public void commandOutput(int id,
                          java.lang.String line)
Specified by:
commandOutput in class Command

commandTerminated

public void commandTerminated(int id,
                              java.lang.String reason)
Specified by:
commandTerminated in class Command

commandCompleted

public void commandCompleted(int id,
                             int exitCode)
Specified by:
commandCompleted in class Command

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object