ShellOutputReceiverStream

public final class ShellOutputReceiverStream
extends 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 داده شده ایجاد کنید.

ارائه یک گیرنده تهی در اینجا برای ساده‌سازی کد با استفاده از آداپتور معتبر است، یعنی به گونه‌ای که بتواند از آن با try-with-resources بدون بررسی خود گیرنده تهی استفاده کند.

پارامترها
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