CollectingByteOutputReceiver
public class CollectingByteOutputReceiver
extends Object
implements IShellOutputReceiver
java.lang.Object | |
↳ | com.android.tradefed.device.CollectingByteOutputReceiver |
IShellOutputReceiver
który zbiera dane wyjściowe całej powłoki do byte[]
. Jest to przydatne w przypadku poleceń powłoki, które będą generować znaczną ilość danych wyjściowych, gdzie narzut pamięci 2xString
będzie znaczący.
streszczenie
Konstruktorzy publiczni | |
---|---|
CollectingByteOutputReceiver () |
Metody publiczne | |
---|---|
void | addOutput (byte[] data, int offset, int length) |
void | cancel () Anuluj kolekcję wyjściową |
void | clear () Spróbuj odszukać wszystko, co tylko możemy |
void | flush () |
byte[] | getOutput () |
boolean | isCancelled ()
|
Konstruktorzy publiczni
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 ()
Anuluj kolekcję wyjściową
jasny
public void clear ()
Spróbuj odszukać wszystko, co tylko możemy
spłukać
public void flush ()
getOutput
public byte[] getOutput ()
Zwroty | |
---|---|
byte[] |
jest odwołany
public boolean isCancelled ()
Zwroty | |
---|---|
boolean |