CollectingByteOutputReceiver
public class CollectingByteOutputReceiver
extends Object
implements IShellOutputReceiver
java.lang.Object | |
↳ | com.android.tradefed.device.CollectingByteOutputReceiver |
IShellOutputReceiver
الذي يجمع ناتج الغلاف بالكامل في byte[]
. هذا مفيد لأوامر shell التي ستنتج قدرًا كبيرًا من المخرجات ، حيث سيكون حمل ذاكرة String
2x مهمًا.
ملخص
المنشأت العامة | |
---|---|
CollectingByteOutputReceiver () |
الأساليب العامة | |
---|---|
void | addOutput (byte[] data, int offset, int length) |
void | cancel () قم بإلغاء مجموعة الإخراج |
void | clear () حاول إلغاء كل ما في وسعنا |
void | flush () |
byte[] | getOutput () |
boolean | isCancelled ()
|
المنشأت العامة
CollectingByteOutputReceiver
public CollectingByteOutputReceiver ()
الأساليب العامة
addOutput
public void addOutput (byte[] data, int offset, int length)
حدود | |
---|---|
data | byte |
offset | int |
length | int |
يلغي
public void cancel ()
قم بإلغاء مجموعة الإخراج
واضح
public void clear ()
حاول إلغاء كل ما في وسعنا
دافق
public void flush ()
getOutput
public byte[] getOutput ()
عائدات | |
---|---|
byte[] |
تم إلغاء
public boolean isCancelled ()
عائدات | |
---|---|
boolean |