ColetandoOutputReceiver

public class CollectingOutputReceiver
extends Object implements IShellOutputReceiver

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


Um IShellOutputReceiver que coleta toda a saída do shell em um String .

Resumo

Construtores públicos

CollectingOutputReceiver ()

Métodos públicos

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

void cancel ()

Cancelar a coleta de saída

void clearBuffer ()

Limpe o conteúdo do buffer.

void flush ()

String getOutput ()
boolean isCancelled ()

Construtores públicos

ColetandoOutputReceiver

public CollectingOutputReceiver ()

Métodos públicos

adicionarSaída

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

Parâmetros
data byte

offset int

length int

cancelar

public void cancel ()

Cancelar a coleta de saída

limparBuffer

public void clearBuffer ()

Limpe o conteúdo do buffer.

rubor

public void flush ()

obter saída

public String getOutput ()

Devoluções
String

é cancelado

public boolean isCancelled ()

Devoluções
boolean