ShellĐầu raBộ thu Luồng

public final class ShellOutputReceiverStream
extends Object

java.lang.Object
com.android.tradefed.util.ShellOutputReceiverStream


Lớp con tiện ích của OutputStream ghi vào IShellOutputReceiver.

Bản tóm tắt

Nhà thầu xây dựng công cộng

ShellOutputReceiverStream (IShellOutputReceiver receiver)

Tạo bộ điều hợp mới cho IShellOutputReceiver đã cho.

ShellOutputReceiverStream (IShellOutputReceiver receiver, FileOutputStream fileOutput)

Phương pháp công cộng

void close ()
void flush ()
void write (byte[] b)
void write (byte[] b, int off, int len)
void write (int b)

Nhà thầu xây dựng công cộng

ShellĐầu raBộ thu Luồng

public ShellOutputReceiverStream (IShellOutputReceiver receiver)

Tạo bộ điều hợp mới cho IShellOutputReceiver đã cho.

Việc cung cấp bộ thu null ở đây là hợp lệ để đơn giản hóa mã bằng cách sử dụng bộ chuyển đổi, tức là để nó có thể sử dụng bộ thu này với các tài nguyên dùng thử mà không cần kiểm tra chính bộ thu null.

Thông số
receiver IShellOutputReceiver

ShellĐầu raBộ thu Luồng

public ShellOutputReceiverStream (IShellOutputReceiver receiver, 
                FileOutputStream fileOutput)

Thông số
receiver IShellOutputReceiver

fileOutput FileOutputStream

Phương pháp công cộng

đóng

public void close ()

tuôn ra

public void flush ()

viết

public void write (byte[] b)

Thông số
b byte

viết

public void write (byte[] b, 
                int off, 
                int len)

Thông số
b byte

off int

len int

viết

public void write (int b)

Thông số
b int