CollectingByteOutputReceiver
  public
  
  
  
  class
  CollectingByteOutputReceiver
  
    extends Object
  
  
  
  
  
      implements
      
        IShellOutputReceiver
      
  
  
| java.lang.Object | |
| ↳ | com.android.tradefed.device.CollectingByteOutputReceiver | 
IShellOutputReceiver, który zbiera cały kod wyjściowy powłoki w obiekt byte[].
 Jest to przydatne w przypadku poleceń w powłoce, które generują dużą ilość danych wyjściowych, ponieważ w takim przypadku obciążenie pamięci 2 × String będzie znaczne.
Podsumowanie
| Konstruktory publiczne | |
|---|---|
| 
      CollectingByteOutputReceiver()
       | |
| Metody publiczne | |
|---|---|
| 
        
        
        
        
        
        void | 
      addOutput(byte[] data, int offset, int length)
      
 | 
| 
        
        
        
        
        
        void | 
      cancel()
      Anulowanie kolekcji danych wyjściowych | 
| 
        
        
        
        
        
        void | 
      clear()
      Spróbuj odnieść wszystko, co się da | 
| 
        
        
        
        
        
        void | 
      flush()
      
 | 
| 
        
        
        
        
        
        byte[] | 
      getOutput()
       | 
| 
        
        
        
        
        
        boolean | 
      isCancelled()
      
 | 
Konstruktory publiczne
CollectingByteOutputReceiver
public CollectingByteOutputReceiver ()
Metody publiczne
addOutput
public void addOutput (byte[] data, 
                int offset, 
                int length)| Parametry | |
|---|---|
| data | byte | 
| offset | int | 
| length | int | 
anuluj
public void cancel ()
Anulowanie kolekcji danych wyjściowych
wyczyść
public void clear ()
Spróbuj odnieść wszystko, co się da
spłukać
public void flush ()
getOutput
public byte[] getOutput ()
| Zwroty | |
|---|---|
| byte[] | |
isCancelled
public boolean isCancelled ()
| Zwroty | |
|---|---|
| boolean | |
