public class FastByteArrayOutputStream
extends java.io.OutputStream
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
buf
The buffer where data is stored.
|
protected int |
count
The number of valid bytes in the buffer.
|
| Constructor and Description |
|---|
FastByteArrayOutputStream() |
FastByteArrayOutputStream(int size) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBytes() |
void |
reset() |
int |
size() |
byte[] |
toByteArray() |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
protected byte[] buf
protected int count
public FastByteArrayOutputStream()
public FastByteArrayOutputStream(int size)
public byte[] getBytes()
public void reset()
public int size()
public byte[] toByteArray()
public void write(byte[] b,
int off,
int len)
write in class java.io.OutputStreampublic void write(int b)
write in class java.io.OutputStream