public class ByteArrayOutputStream
extends java.io.OutputStream
| Modifier and Type | Field and Description |
|---|---|
(package private) byte[] |
buffer |
(package private) int |
size |
| Constructor and Description |
|---|
ByteArrayOutputStream() |
ByteArrayOutputStream(int capacity) |
| Modifier and Type | Method and Description |
|---|---|
private void |
checkCapacity(int minimumCapacity)
Ensures the the buffer has at least the minimumCapacity specified.
|
void |
reset() |
int |
size() |
Buffer |
toBuffer() |
byte[] |
toByteArray() |
void |
write(Buffer b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
public ByteArrayOutputStream()
public ByteArrayOutputStream(int capacity)
public void write(int b)
write in class java.io.OutputStreampublic void write(byte[] b,
int off,
int len)
write in class java.io.OutputStreampublic void write(Buffer b)
private void checkCapacity(int minimumCapacity)
minimumCapacity - public void reset()
public Buffer toBuffer()
public byte[] toByteArray()
public int size()