ShellOutputReceiverStream
public
final
class
ShellOutputReceiverStream
extends Object
JavaScript.lang.Object
|
↳ |
com.android.tradefed.util.ShellOutputReceiverStream
|
תת-סוג של OutputStream שכותב ל-IShellOutputReceiver.
סיכום
יוצרים ציבוריים
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)
write
public void write (byte[] b,
int off,
int len)
פרמטרים |
b |
byte |
off |
int |
len |
int |
write
public void write (int b)
דוגמאות התוכן והקוד שבדף הזה כפופות לרישיונות המפורטים בקטע רישיון לתוכן. Java ו-OpenJDK הם סימנים מסחריים או סימנים מסחריים רשומים של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-11-08 (שעון UTC).
[null,null,["עדכון אחרון: 2024-11-08 (שעון UTC)."],[],[]]