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를 사용할 수 있습니다.

매개변수
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