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 المحدَّد.

من الصحيح تقديم مستلِم فارغ هنا لتبسيط الرمز باستخدام المحوِّل، أي ليكون بإمكانه استخدام هذا مع try-with-resources بدون التحقّق من وجود مستلِم فارغ بحد ذاته.

المعلمات
receiver IShellOutputReceiver

ShellOutputReceiverStream

public ShellOutputReceiverStream (IShellOutputReceiver receiver, 
                FileOutputStream fileOutput)

المعلمات
receiver IShellOutputReceiver

fileOutput FileOutputStream

الطرق العامة

إغلاق

public void close ()

flush

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