ShellOutputReceiverStream

public final class ShellOutputReceiverStream
extends Object

java.lang.Object
   ↳ com.android.tradefed.util.ShellOutputReceiverStream


Subclasse de utilitário de OutputStream que grava em um IShellOutputReceiver.

Resumo

Construtores públicos

ShellOutputReceiverStream(IShellOutputReceiver receiver)

Crie um novo adaptador para a IShellOutputReceiver especificada.

ShellOutputReceiverStream(IShellOutputReceiver receiver, FileOutputStream fileOutput)

Métodos públicos

void close()
void flush()
void write(byte[] b)
void write(byte[] b, int off, int len)
void write(int b)

Construtores públicos

ShellOutputReceiverStream

public ShellOutputReceiverStream (IShellOutputReceiver receiver)

Cria um novo adaptador para a IShellOutputReceiver especificada.

É válido fornecer um receptor nulo aqui para simplificar o código usando o adaptador, ou seja, para que ele possa usar isso com try-with-resources sem verificar um receptor nulo.

Parâmetros
receiver IShellOutputReceiver

ShellOutputReceiverStream

public ShellOutputReceiverStream (IShellOutputReceiver receiver, 
                FileOutputStream fileOutput)

Parâmetros
receiver IShellOutputReceiver

fileOutput FileOutputStream

Métodos públicos

fechar

public void close ()

limpar

public void flush ()

gravação

public void write (byte[] b)

Parâmetros
b byte

escrever

public void write (byte[] b, 
                int off, 
                int len)

Parâmetros
b byte

off int

len int

escrever

public void write (int b)

Parâmetros
b int