public class ByteArrayOutputStream extends OutputStream
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
buf |
protected int |
count |
| Constructor and Description |
|---|
ByteArrayOutputStream() |
ByteArrayOutputStream(int size) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
reset() |
int |
size() |
byte[] |
toByteArray() |
String |
toString() |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
flush, writepublic ByteArrayOutputStream()
public ByteArrayOutputStream(int size)
public void close()
throws IOException
close in interface AutoCloseableclose in class OutputStreamIOExceptionpublic void reset()
public int size()
public byte[] toByteArray()
public void write(byte[] b,
int off,
int len)
write in class OutputStreampublic void write(int b)
write in class OutputStreamCopyright © 2026. All rights reserved.