CollectingOutputReceiver
public class CollectingOutputReceiver
extends Object
implements IShellOutputReceiver
java.lang.Object | |
↳ | com.android.tradefed.device.CollectingOutputReceiver |
Un IShellOutputReceiver
qui collecte toute la sortie du shell dans un 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 () Efface 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 ()
Efface le contenu du tampon.
affleurer
public void flush ()
getOutput
public String getOutput ()
Retour | |
---|---|
String |
est annulé
public boolean isCancelled ()
Retour | |
---|---|
boolean |