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