public class FastByteArrayOutputStream extends OutputStream
| Constructor and Description |
|---|
FastByteArrayOutputStream() |
FastByteArrayOutputStream(int size) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
byte[] |
getBuffer() |
void |
reset() |
int |
size() |
byte[] |
toByteArray() |
String |
toString() |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
void |
writeBytes(byte[] b) |
void |
writeTo(OutputStream out) |
flush, writepublic FastByteArrayOutputStream()
public FastByteArrayOutputStream(int size)
public void write(int b)
write in class OutputStreampublic void write(byte[] b,
int off,
int len)
write in class OutputStreampublic void writeBytes(byte[] b)
public void reset()
public byte[] toByteArray()
public byte[] getBuffer()
public int size()
public void writeTo(OutputStream out) throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionCopyright © 2024. All rights reserved.