to top
public class

CollectingOutputReceiver

extends Object
implements IShellOutputReceiver
java.lang.Object
   ↳ com.android.tradefed.device.CollectingOutputReceiver

Class Overview

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 flush()
String getOutput()
boolean isCancelled()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.android.ddmlib.IShellOutputReceiver

Public Constructors

public CollectingOutputReceiver ()

Public Methods

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

Parameters
data byte
offset int
length int

public void cancel ()

Cancel the output collection

public void flush ()

public String getOutput ()

Returns
String

public boolean isCancelled ()

Returns
boolean