ShellOutputReceiverStream

public final class ShellOutputReceiverStream
extends Object

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


Klasa narzędziowa podrzędna klasy OutputStream, która zapisuje dane w obiekcie IShellOutputReceiver.

Podsumowanie

Publiczne konstruktory

ShellOutputReceiverStream(IShellOutputReceiver receiver)

Utwórz nowy adapter dla podanego IShellOutputReceiver.

ShellOutputReceiverStream(IShellOutputReceiver receiver, FileOutputStream fileOutput)

Metody publiczne

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

Publiczne konstruktory

ShellOutputReceiverStream

public ShellOutputReceiverStream (IShellOutputReceiver receiver)

Utwórz nowy adapter dla podanego IShellOutputReceiver.

Aby uprościć kod korzystający z adaptera, można podać tutaj odbiornik o wartości null, czyli użyć go z konstrukcją try-with-resources bez sprawdzania, czy odbiornik ma wartość null.

Parametry
receiver IShellOutputReceiver

ShellOutputReceiverStream

public ShellOutputReceiverStream (IShellOutputReceiver receiver, 
                FileOutputStream fileOutput)

Parametry
receiver IShellOutputReceiver

fileOutput FileOutputStream

Metody publiczne

zamknij

public void close ()

spłukiwać,

public void flush ()

pisać

public void write (byte[] b)

Parametry
b byte

pisać

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

Parametry
b byte

off int

len int

pisać

public void write (int b)

Parametry
b int