ShellOutputReceiverStream

public final class ShellOutputReceiverStream
extends Object

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


寫入IShellOutputReceiver的OutputStream實用程序子類。

概括

公共建設者

ShellOutputReceiverStream (IShellOutputReceiver receiver)

為給定的IShellOutputReceiver創建一個新的適配器。

公開方法

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一起使用,而無需檢查空接收器本身。如果接收者為null,則ERROR(/#getOutputStream())也將返回null。

參數
receiver IShellOutputReceiver

公開方法

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