ShellOutputReceiverStream

public final class ShellOutputReceiverStream
extends OutputStream

java.lang.Object
java.io.OutputStream
  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 ()

생성 값
IOException

플러시

public void flush ()

생성 값
IOException

쓰기

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