CollectingOutputReceiver
public
class
CollectingOutputReceiver
extends Object
implements
IShellOutputReceiver
java.lang.Object | |
↳ | com.android.tradefed.device.CollectingOutputReceiver |
IShellOutputReceiver
會將整個殼層輸出內容收集到一個 String
中。
摘要
公用建構函式 | |
---|---|
CollectingOutputReceiver()
|
公用方法 | |
---|---|
void
|
addOutput(byte[] data, int offset, int length)
|
void
|
cancel()
取消輸出收集 |
void
|
clearBuffer()
清除緩衝區的內容。 |
void
|
flush()
|
String
|
getOutput()
|
boolean
|
isCancelled()
|
公用建構函式
CollectingOutputReceiver
public CollectingOutputReceiver ()
公用方法
addOutput
public void addOutput (byte[] data, int offset, int length)
參數 | |
---|---|
data |
byte |
offset |
int |
length |
int |
cancel
public void cancel ()
取消輸出收集
clearBuffer
public void clearBuffer ()
清除緩衝區的內容。
排空
public void flush ()
getOutput
public String getOutput ()
傳回 | |
---|---|
String |
isCancelled
public boolean isCancelled ()
傳回 | |
---|---|
boolean |