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, write
public FastByteArrayOutputStream()
public FastByteArrayOutputStream(int size)
public void write(int b)
write
in class OutputStream
public void write(byte[] b, int off, int len)
write
in class OutputStream
public void writeBytes(byte[] b)
public void reset()
public byte[] toByteArray()
public byte[] getBuffer()
public int size()
public void writeTo(OutputStream out) throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException
Copyright © 2024. All rights reserved.