Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.

CollectingOutputReceiver

public class CollectingOutputReceiver
extends Object implements IShellOutputReceiver

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


A IShellOutputReceiver which collects the whole shell output into one String.

Summary

Public constructors

CollectingOutputReceiver()

Public methods

void addOutput(byte[] data, int offset, int length)

void cancel()

Cancel the output collection

void clearBuffer()

Clear the content of the buffer.

void flush()

String getOutput()
boolean isCancelled()

Public constructors

CollectingOutputReceiver

public CollectingOutputReceiver ()

Public methods

addOutput

public void addOutput (byte[] data, 
                int offset, 
                int length)

Parameters
data byte

offset int

length int

cancel

public void cancel ()

Cancel the output collection

clearBuffer

public void clearBuffer ()

Clear the content of the buffer.

flush

public void flush ()

getOutput

public String getOutput ()

Returns
String

isCancelled

public boolean isCancelled ()

Returns
boolean