ShellOutputReceiverStream

public final class ShellOutputReceiverStream
extends Object

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


Podklasa Utility klasy OutputStream, która zapisuje dane do klasy IShellOutputReceiver.

Podsumowanie

Konstruktory publiczne

ShellOutputReceiverStream(IShellOutputReceiver receiver)

Utwórz nowy adapter dla danego zasobu (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.

Aby uprościć kod korzystający z adaptera, możesz tutaj podać nullowy odbiornik, aby mógł on korzystać z try-with-resources bez sprawdzania, czy odbiornik jest nullowy.

Parametry
receiver IShellOutputReceiver

ShellOutputReceiverStream

public ShellOutputReceiverStream (IShellOutputReceiver receiver, 
                FileOutputStream fileOutput)

Parametry
receiver IShellOutputReceiver

fileOutput FileOutputStream

Metody publiczne

zamknij

public void close ()

opróżniać

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