ShellOutputReceiverStream

public final class ShellOutputReceiverStream
extends Object

java.lang.オブジェクト
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