শেলআউটপুটরিসিভারস্ট্রিম

public final class ShellOutputReceiverStream
extends OutputStream

java.lang.Object
java.io.OutputStream
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)

সরকারি নির্মাণকারী

শেলআউটপুটরিসিভারস্ট্রিম

public ShellOutputReceiverStream (IShellOutputReceiver receiver)

প্রদত্ত IShellOutputReceiver জন্য একটি নতুন অ্যাডাপ্টার তৈরি করুন।

অ্যাডাপ্টার ব্যবহার করে কোডকে সরল করার জন্য এখানে একটি নাল রিসিভার প্রদান করা বৈধ, অর্থাৎ যাতে এটি নিজে নাল রিসিভার পরীক্ষা না করেই try-with-resources-এর সাথে এটি ব্যবহার করতে পারে।

প্যারামিটার
receiver IShellOutputReceiver

শেলআউটপুটরিসিভারস্ট্রিম

public ShellOutputReceiverStream (IShellOutputReceiver receiver, 
                FileOutputStream fileOutput)

প্যারামিটার
receiver IShellOutputReceiver

fileOutput FileOutputStream

জনসাধারণের পদ্ধতি

বন্ধ

public void close ()

নিক্ষেপ
IOException

ফ্লাশ

public void flush ()

নিক্ষেপ
IOException

লিখুন

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