ShellOutputReceiverStream

public final class ShellOutputReceiverStream
extends Object

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


IShellOutputReceiver に書き込む OutputStream のユーティリティ サブクラス。

まとめ

パブリック コンストラクター

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の新しいアダプターを作成します。

アダプターを使用してコードを簡素化するために、ここで null レシーバーを提供することは有効です。つまり、null レシーバー自体をチェックせずに try-with-resources でこれを使用できるようにします。

パラメーター
receiver IShellOutputReceiver

ShellOutputReceiverStream

public ShellOutputReceiverStream (IShellOutputReceiver receiver, 
                FileOutputStream fileOutput)

パラメーター
receiver IShellOutputReceiver

fileOutput FileOutputStream

公開メソッド

近い

public void close ()

流す

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