ShellOutputReceiverStream

public final class ShellOutputReceiverStream
extends Object

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


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

Resumo

Construtores públicos

ShellOutputReceiverStream (IShellOutputReceiver receiver)

Crie um novo adaptador para o IShellOutputReceiver fornecido.

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)

Crie um novo adaptador para o IShellOutputReceiver fornecido.

É válido fornecer um receptor nulo aqui para simplificar o código usando o adaptador, ou seja, para que ele possa usá-lo com try-with-resources sem verificar o próprio 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 ()

rubor

public void flush ()

escrever

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