ShellOutputReceiverStream

public final class ShellOutputReceiverStream
extends Object

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


מחלקת משנה של כלי השירות OutputStream שכותבת ל-IShellOutputReceiver.

סיכום

Constructors ציבוריים

ShellOutputReceiverStream(IShellOutputReceiver receiver)

יצירת מתאם חדש עבור IShellOutputReceiver הנתון.

ShellOutputReceiverStream(IShellOutputReceiver receiver, FileOutputStream fileOutput)

‫methods ציבוריים

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

Constructors ציבוריים

ShellOutputReceiverStream

public ShellOutputReceiverStream (IShellOutputReceiver receiver)

יצירת מתאם חדש עבור IShellOutputReceiver הנתון.

אפשר לספק כאן ערך null של מקלט כדי לפשט את הקוד באמצעות המתאם, כלומר כדי שאפשר יהיה להשתמש בו עם try-with-resources בלי לבדוק בעצמו אם המקלט הוא null.

פרמטרים
receiver IShellOutputReceiver

ShellOutputReceiverStream

public ShellOutputReceiverStream (IShellOutputReceiver receiver, 
                FileOutputStream fileOutput)

פרמטרים
receiver IShellOutputReceiver

fileOutput FileOutputStream

‫methods ציבוריים

סגירה

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