CollectingOutputReceiver

public class CollectingOutputReceiver
extends Object implements IShellOutputReceiver

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


Un IShellOutputReceiver qui collecte l’intégralité de la sortie du shell en un seul String .

Résumé

Constructeurs publics

CollectingOutputReceiver ()

Méthodes publiques

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

void cancel ()

Annuler la collecte de sortie

void clearBuffer ()

Effacez le contenu du tampon.

void flush ()

String getOutput ()
boolean isCancelled ()

Constructeurs publics

CollectingOutputReceiver

public CollectingOutputReceiver ()

Méthodes publiques

ajouterSortie

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

Paramètres
data byte

offset int

length int

Annuler

public void cancel ()

Annuler la collecte de sortie

clearBuffer

public void clearBuffer ()

Effacez le contenu du tampon.

affleurer

public void flush ()

getOutput

public String getOutput ()

Retour
String

est annulé

public boolean isCancelled ()

Retour
boolean