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 shell que produzirão uma quantidade significativa de saída, onde a sobrecarga de memória 2x ERROR(/String)
será significativa.
Resumo
Construtores públicos | |
---|---|
CollectingByteOutputReceiver () |
Métodos públicos | |
---|---|
void | addOutput (byte[] data, int offset, int length) |
void | cancel () Cancelar a coleção de saída |
void | clear () Tente desfazer tudo o 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 coleção de saída
claro
public void clear ()
Tente desfazer tudo o que pudermos
rubor
public void flush ()
getOutput
public byte[] getOutput ()
devoluções | |
---|---|
byte[] |
é cancelado
public boolean isCancelled ()
devoluções | |
---|---|
boolean |