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
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)
pisać
public void write (byte[] b,
int off,
int len)
Parametry |
b |
byte |
off |
int |
len |
int |
pisać
public void write (int b)
Treść strony i umieszczone na niej fragmenty kodu podlegają licencjom opisanym w Licencji na treści. Java i OpenJDK są znakami towarowymi lub zastrzeżonymi znakami towarowymi należącymi do firmy Oracle lub jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-11-08 UTC.
[null,null,["Ostatnia aktualizacja: 2024-11-08 UTC."],[],[]]