CollectingOutputReceiver

public class CollectingOutputReceiver
extends Object implements IShellOutputReceiver

java.lang.Object
   ↳ com.android.tradefed.device.CollectingOutputReceiver


一个 IShellOutputReceiver,用于将整个 Shell 输出收集到一个 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

取消

public void cancel ()

取消输出收集

clearBuffer

public void clearBuffer ()

清除缓冲区的内容。

flush

public void flush ()

getOutput

public String getOutput ()

返回
String

isCancelled

public boolean isCancelled ()

返回
boolean