com.google.enterprise.adaptor.prebuilt
Class Command.Result

java.lang.Object
  extended by com.google.enterprise.adaptor.prebuilt.Command.Result
Enclosing class:
Command

public static class Command.Result
extends Object

Result data from an invocation


Constructor Summary
Command.Result(int returnCode, byte[] stdout, byte[] stderr)
          Construct a result.
 
Method Summary
 int getReturnCode()
           
 byte[] getStderr()
          Returns internal byte array without copying.
 byte[] getStdout()
          Returns internal byte array without copying.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Command.Result

public Command.Result(int returnCode,
                      byte[] stdout,
                      byte[] stderr)
Construct a result. In normal usage, this is unnecessary, but it can be helpful in the tests of classes that use Command.

Method Detail

getReturnCode

public int getReturnCode()

getStdout

public byte[] getStdout()
Returns internal byte array without copying.


getStderr

public byte[] getStderr()
Returns internal byte array without copying.