CollectingByteOutputReceiver
public
class
CollectingByteOutputReceiver
extends Object
implements
IShellOutputReceiver
java.lang.Object | |
↳ | com.android.tradefed.device.CollectingByteOutputReceiver |
IShellOutputReceiver
يجمع كلّ إخراج shell في byte[]
.
يكون ذلك مفيدًا لأوامر shell التي ستؤدي إلى إنشاء قدر كبير من الإخراج، حيث سيكون String
مزدوجًا من الذاكرة.
ملخّص
وظائف الإنشاء العامة | |
---|---|
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 ()
سنحاول إلغاء الإشارة إلى كل ما يمكننا.
flush
public void flush ()
getOutput
public byte[] getOutput ()
المرتجعات | |
---|---|
byte[] |
isCancelled
public boolean isCancelled ()
المرتجعات | |
---|---|
boolean |