ShellOutputReceiverStream

public final class ShellOutputReceiverStream
extends Object

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


תת-סוג של OutputStream שכותב ל-IShellOutputReceiver.

סיכום

קונסטרוקטורים גלויים לכולם

ShellOutputReceiverStream(IShellOutputReceiver receiver)

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

ShellOutputReceiverStream(IShellOutputReceiver receiver, FileOutputStream fileOutput)

שיטות ציבוריות

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

קונסטרוקטורים גלויים לכולם

ShellOutputReceiverStream

public ShellOutputReceiverStream (IShellOutputReceiver receiver)

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

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

פרמטרים
receiver IShellOutputReceiver

ShellOutputReceiverStream

public ShellOutputReceiverStream (IShellOutputReceiver receiver, 
                FileOutputStream fileOutput)

פרמטרים
receiver IShellOutputReceiver

fileOutput FileOutputStream

שיטות ציבוריות

סגירה

public void close ()

flush

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