public class ByteArrayOutputStream extends OutputStream
| Constructor and Description |
|---|
ByteArrayOutputStream() |
ByteArrayOutputStream(int capacity) |
| Modifier and Type | Method and Description |
|---|---|
void |
reset() |
int |
size() |
Buffer |
toBuffer() |
byte[] |
toByteArray() |
void |
write(Buffer b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
close, flush, writepublic ByteArrayOutputStream()
public ByteArrayOutputStream(int capacity)
public void write(int b)
write in class OutputStreampublic void write(byte[] b,
int off,
int len)
write in class OutputStreampublic void write(Buffer b)
public void reset()
public Buffer toBuffer()
public byte[] toByteArray()
public int size()
Copyright © 2010–2025 FuseSource, Corp.. All rights reserved.