ShellOutputReceiverStream

public final class ShellOutputReceiverStream
extends OutputStream

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


Subclase de utilidad de OutputStream que escribe en un IShellOutputReceiver.

Resumen

Constructores públicos

ShellOutputReceiverStream(IShellOutputReceiver receiver)

Crea un adaptador nuevo para el IShellOutputReceiver determinado.

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)

Crea un adaptador nuevo para el IShellOutputReceiver determinado.

Es válido proporcionar un receptor nulo aquí para simplificar el código con el adaptador, es decir, pa ra que pueda usarlo con try-with-resources sin verificar un receptor nulo.

Parámetros
receiver IShellOutputReceiver

ShellOutputReceiverStream

public ShellOutputReceiverStream (IShellOutputReceiver receiver, 
                FileOutputStream fileOutput)

Parámetros
receiver IShellOutputReceiver

fileOutput FileOutputStream

Métodos públicos

cerrar

public void close ()

Arroja
IOException

vaciar

public void flush ()

Arroja
IOException

write

public void write (byte[] b)

Parámetros
b byte

write

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

Parámetros
b byte

off int

len int

write

public void write (int b)

Parámetros
b int