CollectingOutputReceiver
public class CollectingOutputReceiver
extends Object
implements IShellOutputReceiver
java.lang.Object | |
↳ | com.android.tradefed.device.CollectingOutputReceiver |
Un IShellOutputReceiver
que recopila toda la salida del shell en unaString
.
Resumen
Constructores públicos | |
---|---|
CollectingOutputReceiver () |
Métodos públicos | |
---|---|
void | addOutput (byte[] data, int offset, int length) |
void | cancel () Cancelar la colección de salida |
void | clearBuffer () Limpia el contenido del búfer. |
void | flush () |
String | getOutput () |
boolean | isCancelled ()
|
Constructores públicos
CollectingOutputReceiver
public CollectingOutputReceiver ()
Métodos públicos
addOutput
public void addOutput (byte[] data, int offset, int length)
Parámetros | |
---|---|
data | byte |
offset | int |
length | int |
cancelar
public void cancel ()
Cancelar la colección de salida
clearBuffer
public void clearBuffer ()
Limpia el contenido del búfer.
enjuagar
public void flush ()
getOutput
public String getOutput ()
Devoluciones | |
---|---|
String |
está cancelado
public boolean isCancelled ()
Devoluciones | |
---|---|
boolean |