CollectingOutputReceiver
  public
  
  
  
  class
  CollectingOutputReceiver
  
    extends Object
  
  
  
  
  
      implements
      
        IShellOutputReceiver
      
  
  
| java.lang.Object | |
| ↳ | com.android.tradefed.device.CollectingOutputReceiver | 
Un IShellOutputReceiver que recopila todo el resultado de la shell en un String.
Resumen
| Constructores públicos | |
|---|---|
| 
      CollectingOutputReceiver()
       | |
| Métodos públicos | |
|---|---|
| 
        
        
        
        
        
        void | 
      addOutput(byte[] data, int offset, int length)
      
 | 
| 
        
        
        
        
        
        void | 
      cancel()
      Cancela la colección de salida | 
| 
        
        
        
        
        
        void | 
      clearBuffer()
      Borra el contenido del búfer. | 
| 
        
        
        
        
        
        void | 
      flush()
      
 | 
| 
        
        
        
        
        
        String | 
      getOutput()
       | 
| 
        
        
        
        
        
        boolean | 
      isCancelled()
      
 | 
Constructores públicos
CollectingOutputReceiver
public CollectingOutputReceiver ()
Métodos públicos
addOutput
public void addOutput (byte[] data, 
                int offset, 
                int length)| Parámetros | |
|---|---|
| data | byte | 
| offset | int | 
| length | int | 
cancelar
public void cancel ()
Cancela la colección de salida
clearBuffer
public void clearBuffer ()
Borra el contenido del búfer.
vaciar
public void flush ()
getOutput
public String getOutput ()
| Muestra | |
|---|---|
| String | |
isCancelled
public boolean isCancelled ()
| Muestra | |
|---|---|
| boolean | |
