CollectingOutputReceiver
public
class
CollectingOutputReceiver
extends Object
implements
IShellOutputReceiver
| java.lang.Object | |
| ↳ | com.android.tradefed.device.CollectingOutputReceiver |
Uma IShellOutputReceiver que coleta toda a saída do shell em uma
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
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 a coleta de saída
clearBuffer
public void clearBuffer ()
Limpe o conteúdo do buffer.
limpar
public void flush ()
getOutput
public String getOutput ()
| Retorna | |
|---|---|
String |
|
isCancelled
public boolean isCancelled ()
| Retorna | |
|---|---|
boolean |
|