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 ที่กำหนด

การให้ตัวรับค่าว่างที่นี่เป็นสิ่งที่ถูกต้องเพื่อทำให้รหัสง่ายขึ้นโดยใช้อแด็ปเตอร์ นั่นคือเพื่อให้สามารถใช้สิ่งนี้กับทรัพยากรแบบลองด้วยทรัพยากรโดยไม่ต้องตรวจสอบตัวรับค่าว่าง

พารามิเตอร์
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