public class FastByteArrayOutputStream extends OutputStream
| Constructor and Description |
|---|
FastByteArrayOutputStream() |
FastByteArrayOutputStream(int aSize) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addBuffer()
Create a new buffer and store the
current one in linked list
|
void |
close() |
int |
getSize() |
byte[] |
toByteArray() |
String |
toString() |
void |
write(byte[] data,
int offset,
int length) |
void |
write(int datum) |
void |
writeTo(OutputStream out) |
void |
writeTo(RandomAccessFile out) |
void |
writeTo(Writer out,
String encoding) |
flush, writepublic FastByteArrayOutputStream()
public FastByteArrayOutputStream(int aSize)
public int getSize()
public void close()
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreampublic byte[] toByteArray()
public void write(int datum)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] data,
int offset,
int length)
throws IOException
write in class OutputStreamIOExceptionpublic void writeTo(OutputStream out) throws IOException
IOExceptionpublic void writeTo(RandomAccessFile out) throws IOException
IOExceptionpublic void writeTo(Writer out, String encoding) throws IOException
IOExceptionprotected void addBuffer()
Copyright © 2012-2015 Cloudhopper by Twitter. All Rights Reserved.