ShellOutputReceiverStream
public final class ShellOutputReceiverStream
extends Object
java.lang.Object |
↳ | com.android.tradefed.util.ShellOutputReceiverStream |
写入IShellOutputReceiver的OutputStream实用程序子类。
概括
公开方法 |
---|
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)
写
public void write (byte[] b,
int off,
int len)
写
public void write (int b)