ShellOutputReceiverStream
public final class ShellOutputReceiverStream
extends Object
java.lang.Object |
↳ | com.android.tradefed.util.ShellOutputReceiverStream |
תת-מחלקת שירות של OutputStream שכותבת לתוך IShellOutputReceiver.
סיכום
בנאים ציבוריים
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)
לִכתוֹב
public void write (byte[] b,
int off,
int len)
פרמטרים |
---|
b | byte |
off | int |
len | int |
לִכתוֹב
public void write (int b)