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

CollectingOutputReceiver ()

Public methods

addOutput

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

Parameters
data byte

offset int

length int

cancel

void cancel ()

Cancel the output collection

clearBuffer

void clearBuffer ()

Clear the content of the buffer.

flush

void flush ()

getOutput

String getOutput ()

Returns
String

isCancelled

boolean isCancelled ()

Returns
boolean