public final class ByteArrayOutputStreamEx
extends java.io.ByteArrayOutputStream
ByteArrayOutputStream with access to its raw buffer.| Constructor and Description |
|---|
ByteArrayOutputStreamEx() |
ByteArrayOutputStreamEx(int size) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBuffer() |
void |
readFrom(java.io.InputStream is)
Reads the given
InputStream completely into the buffer. |
void |
set(Base64Data dt,
java.lang.String mimeType) |
public ByteArrayOutputStreamEx()
public ByteArrayOutputStreamEx(int size)
public void set(Base64Data dt, java.lang.String mimeType)
public byte[] getBuffer()
public void readFrom(java.io.InputStream is)
throws java.io.IOException
InputStream completely into the buffer.java.io.IOException