NullOutputReceiver

public final class NullOutputReceiver
extends Object implements IShellOutputReceiver

java.lang.Object
   ↳ com.android.ddmlib.NullOutputReceiver


아무것도 하지 않는 IShellOutputReceiver 구현

출력이 필요하지 않은 경우 원격 셸 명령어를 실행하는 데 사용할 수 있습니다.

요약

공개 생성자

NullOutputReceiver()

공개 메서드

void addOutput(byte[] data, int offset, int length)

새 데이터를 사용할 수 있을 때마다 호출됩니다.

void flush()

프로세스 실행이 끝날 때 호출됩니다 (프로세스가 취소되지 않은 경우).

static IShellOutputReceiver getReceiver()
boolean isCancelled()

원격 셸 명령어의 실행을 중지하는 취소 메서드

공개 생성자

NullOutputReceiver

public NullOutputReceiver ()

공개 메서드

addOutput

public void addOutput (byte[] data, 
                int offset, 
                int length)

새 데이터를 사용할 수 있을 때마다 호출됩니다.

매개변수
data byte: 새 데이터입니다.

offset int: 새 데이터가 시작되는 오프셋입니다.

length int: 새 데이터의 길이입니다.

플러시

public void flush ()

프로세스 실행이 끝날 때 호출됩니다 (프로세스가 취소되지 않은 경우). 이를 통해 수신자는 아직 처리되지 않은 데이터를 종료하고 플러시할 수 있습니다.

getReceiver

public static IShellOutputReceiver getReceiver ()

반환 값
IShellOutputReceiver

isCancelled

public boolean isCancelled ()

원격 셸 명령어의 실행을 중지하는 취소 메서드

반환 값
boolean 명령어 실행을 취소하려면 true입니다.