ShellOutputReceiverStream

public final class ShellOutputReceiverStream
extends Object

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


زیرکلاس Utility از 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-بدون بررسی خود گیرنده تهی استفاده کند.

مولفه های
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