ShellOutputReceiverStream

public final class ShellOutputReceiverStream
extends Object

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


Subclase de utilidad de OutputStream que escribe en un IShellOutputReceiver.

Resumen

Constructores públicos

ShellOutputReceiverStream (IShellOutputReceiver receiver)

Cree un nuevo adaptador para el IShellOutputReceiver dado.

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)

Constructores públicos

ShellOutputReceiverStream

public ShellOutputReceiverStream (IShellOutputReceiver receiver)

Cree un nuevo adaptador para el IShellOutputReceiver dado.

Es válido proporcionar un receptor nulo aquí para simplificar el código usando el adaptador, es decir, para que pueda usar esto con probar con recursos sin buscar un receptor nulo.

Parámetros
receiver IShellOutputReceiver

ShellOutputReceiverStream

public ShellOutputReceiverStream (IShellOutputReceiver receiver, 
                FileOutputStream fileOutput)

Parámetros
receiver IShellOutputReceiver

fileOutput FileOutputStream

Métodos públicos

cerca

public void close ()

enjuagar

public void flush ()

escribir

public void write (byte[] b)

Parámetros
b byte

escribir

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

Parámetros
b byte

off int

len int

escribir

public void write (int b)

Parámetros
b int