FixedByteArrayOutputStream
public class FixedByteArrayOutputStream
extends Object
java.lang.객체 |
↳ | com.android.tradefed.util.FixedByteArrayOutputStream |
최대 데이터 양만 유지하는 메모리 내 ERROR(/OutputStream)
입니다.
이것은 고정된 크기의 원형 바이트 배열을 유지함으로써 구현됩니다.
스레드로부터 안전하지 않습니다.
요약
공개 방법 |
---|
InputStream | getData () 수집된 출력을 읽기 위한 InputStream을 가져옵니다. |
long | size () |
void | write (byte[] b, int off, int len) |
void | write (int data) |
공개 생성자
FixedByteArrayOutputStream
public FixedByteArrayOutputStream (int maxDataSize)
FixedByteArrayOutputStream
을 생성합니다.
매개변수 |
---|
maxDataSize | int : 출력 스트림에 보관할 대략적인 최대 크기(바이트) |
공개 방법
getData
public InputStream getData ()
수집된 출력을 읽기 위한 InputStream을 가져옵니다.
스레드로부터 안전하지 않습니다. 읽는 동안 데이터가 기록되지 않는다고 가정합니다.
쓰다
public void write (byte[] b,
int off,
int len)
매개변수 |
---|
b | byte |
off | int |
len | int |
쓰다
public void write (int data)