ShellOutputReceiverStream
public
final
class
ShellOutputReceiverStream
extends Object
java.lang.Object | |
↳ | com.android.tradefed.util.ShellOutputReceiverStream |
ยูทิลิตีคลาสย่อยของ OutputStream ที่เขียนลงใน IShellOutputReceiver
สรุป
ตัวสร้างแบบสาธารณะ | |
---|---|
ShellOutputReceiverStream(IShellOutputReceiver receiver)
สร้างอะแดปเตอร์ใหม่สำหรับ |
|
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 ที่นี่ได้เพื่อลดความซับซ้อนของโค้ดที่ใช้อะแดปเตอร์ เช่น เพื่อให้ใช้กับ try-with-resources ได้โดยไม่ต้องตรวจสอบตัวรับ 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 |