ShellOutputReceiverStream

public final class ShellOutputReceiverStream
extends Object

java.lang.Object
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