ShellOutputReceiverStream
public final class ShellOutputReceiverStream
extends Object
java.lang.Object |
↳ | com.android.tradefed.util.ShellOutputReceiverStream |
写入 IShellOutputReceiver 的 OutputStream 的实用程序子类。
概括
公共构造函数
ShellOutputReceiverStream
public ShellOutputReceiverStream (IShellOutputReceiver receiver)
为给定的IShellOutputReceiver
创建一个新的适配器。
在这里提供空接收器以简化使用适配器的代码是有效的,即它可以将其与 try-with-resources 一起使用,而无需检查空接收器本身。
参数 |
---|
receiver | IShellOutputReceiver |
ShellOutputReceiverStream
public ShellOutputReceiverStream (IShellOutputReceiver receiver,
FileOutputStream fileOutput)
参数 |
---|
receiver | IShellOutputReceiver |
fileOutput | FileOutputStream |
公共方法
写
public void write (byte[] b)
写
public void write (byte[] b,
int off,
int len)
写
public void write (int b)