ShellOutputReceiverStream

public final class ShellOutputReceiverStream
extends Object

java.lang.Объект
com.android.tradefed.util.ShellOutputReceiverStream


Служебный подкласс OutputStream, который записывает в IShellOutputReceiver.

Краткое содержание

Общественные конструкторы

ShellOutputReceiverStream (IShellOutputReceiver receiver)

Создайте новый адаптер для данного IShellOutputReceiver .

ShellOutputReceiverStream (IShellOutputReceiver receiver, FileOutputStream fileOutput)

Публичные методы

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

Общественные конструкторы

ShellOutputReceiverStream

public ShellOutputReceiverStream (IShellOutputReceiver receiver)

Создайте новый адаптер для данного IShellOutputReceiver .

Здесь допустимо предоставить нулевой приемник, чтобы упростить код с использованием адаптера, т. е. чтобы его можно было использовать с помощью try-with-resources без проверки самого нулевого получателя.

Параметры
receiver IShellOutputReceiver

ShellOutputReceiverStream

public ShellOutputReceiverStream (IShellOutputReceiver receiver, 
                FileOutputStream fileOutput)

Параметры
receiver IShellOutputReceiver

fileOutput FileOutputStream

Публичные методы

закрывать

public void close ()

румянец

public void flush ()

писать

public void write (byte[] b)

Параметры
b byte

писать

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

Параметры
b byte

off int

len int

писать

public void write (int b)

Параметры
b int