CollectingOutputReceiver
public
class
CollectingOutputReceiver
extends Object
implements
IShellOutputReceiver
java.lang.Object | |
↳ | com.android.tradefed.device.CollectingOutputReceiver |
IShellOutputReceiver
thu thập toàn bộ đầu ra của shell vào một String
.
Tóm tắt
Hàm khởi tạo công khai | |
---|---|
CollectingOutputReceiver()
|
Phương thức công khai | |
---|---|
void
|
addOutput(byte[] data, int offset, int length)
|
void
|
cancel()
Huỷ quá trình thu thập dữ liệu đầu ra |
void
|
clearBuffer()
Xoá nội dung của vùng đệm. |
void
|
flush()
|
String
|
getOutput()
|
boolean
|
isCancelled()
|
Hàm khởi tạo công khai
CollectingOutputReceiver
public CollectingOutputReceiver ()
Phương thức công khai
addOutput
public void addOutput (byte[] data, int offset, int length)
Tham số | |
---|---|
data |
byte |
offset |
int |
length |
int |
hủy
public void cancel ()
Huỷ quá trình thu thập dữ liệu đầu ra
clearBuffer
public void clearBuffer ()
Xoá nội dung của vùng đệm.
xả
public void flush ()
getOutput
public String getOutput ()
Giá trị trả về | |
---|---|
String |
isCancelled
public boolean isCancelled ()
Giá trị trả về | |
---|---|
boolean |