ShellOutputReceiverStream

public final class ShellOutputReceiverStream
extends OutputStream

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


Podklasa narzędziowa klasy OutputStream, która zapisuje dane w IShellOutputReceiver.

Podsumowanie

Konstruktory publiczne

ShellOutputReceiverStream(IShellOutputReceiver receiver)

Utwórz nowy adapter dla danego 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)

Konstruktory publiczne

ShellOutputReceiverStream

public ShellOutputReceiverStream (IShellOutputReceiver receiver)

Utwórz nowy adapter dla danego IShellOutputReceiver.

Można tu podać odbiornik o wartości null, aby uprościć kod korzystający z adaptera, tzn. aby mo żna było używać go z 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 ()

Zgłasza
IOException

opróżniać

public void flush ()

Zgłasza
IOException

zapis

public void write (byte[] b)

Parametry
b byte

zapis

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

Parametry
b byte

off int

len int

zapis

public void write (int b)

Parametry
b int