CollectingByteOutputReceiver
public
class
CollectingByteOutputReceiver
extends Object
implements
IShellOutputReceiver
| java.lang.Object | |
| ↳ | com.android.tradefed.device.CollectingByteOutputReceiver |
Um IShellOutputReceiver que coleta toda a saída do shell em um byte[].
Isso é útil para comandos de shell que vão produzir uma quantidade significativa de saída, em que a
sobrecarga de memória de String 2x será significativa.
Resumo
Construtores públicos | |
|---|---|
CollectingByteOutputReceiver()
|
|
Métodos públicos | |
|---|---|
void
|
addOutput(byte[] data, int offset, int length)
|
void
|
cancel()
Cancelar a coleta de saída |
void
|
clear()
Tentamos remover todas as referências que pudermos |
void
|
flush()
|
byte[]
|
getOutput()
|
boolean
|
isCancelled()
|
Construtores públicos
CollectingByteOutputReceiver
public CollectingByteOutputReceiver ()
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 ()
Cancelar a coleta de saída
limpar
public void clear ()
Tentamos remover todas as referências que pudermos
limpar
public void flush ()
getOutput
public byte[] getOutput ()
| Retorna | |
|---|---|
byte[] |
|
isCancelled
public boolean isCancelled ()
| Retorna | |
|---|---|
boolean |
|