CollectingByteOutputReceiver
public
class
CollectingByteOutputReceiver
extends Object
implements
IShellOutputReceiver
java.lang.Object | |
↳ | com.android.tradefed.device.CollectingByteOutputReceiver |
Un IShellOutputReceiver
che raccoglie l'intero output della shell in un byte[]
.
Questo è utile per i comandi shell che producono una quantità significativa di output, in cui il sovraccarico della memoria String
2 volte sarà significativo.
Riepilogo
Costruttori pubblici | |
---|---|
CollectingByteOutputReceiver()
|
Metodi pubblici | |
---|---|
void
|
addOutput(byte[] data, int offset, int length)
|
void
|
cancel()
Annullare la raccolta di output |
void
|
clear()
Prova a annullare il riferimento a tutto ciò che è possibile |
void
|
flush()
|
byte[]
|
getOutput()
|
boolean
|
isCancelled()
|
Costruttori pubblici
CollectingByteOutputReceiver
public CollectingByteOutputReceiver ()
Metodi pubblici
addOutput
public void addOutput (byte[] data, int offset, int length)
Parametri | |
---|---|
data |
byte |
offset |
int |
length |
int |
annulla
public void cancel ()
Annullare la raccolta di output
cancella
public void clear ()
Prova a annullare il riferimento a tutto ciò che è possibile
a filo
public void flush ()
getOutput
public byte[] getOutput ()
Ritorni | |
---|---|
byte[] |
isCancelled
public boolean isCancelled ()
Ritorni | |
---|---|
boolean |