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 כדי לפשט את הקוד באמצעות המתאם, כלומר כדי שיוכל להשתמש בזה עם נסה עם משאבים מבלי לבדוק אם יש מקלט null עצמו.

פרמטרים
receiver IShellOutputReceiver

ShellOutputReceiverStream

public ShellOutputReceiverStream (IShellOutputReceiver receiver, 
                FileOutputStream fileOutput)

פרמטרים
receiver IShellOutputReceiver

fileOutput FileOutputStream

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

סגור

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