ShellOutputReceiverStream

public final class ShellOutputReceiverStream
extends OutputStream

java.lang.Object
   ↳ java.io.OutputStream
     ↳ 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 ()

הקפצת הודעות שגיאה (throw)
IOException

לרוקן מידע (Flush)

public void flush ()

הקפצת הודעות שגיאה (throw)
IOException

לכתוב

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