public final class ByteArrayOutputStreamEx extends ByteArrayOutputStream
ByteArrayOutputStream with access to its raw buffer.buf, count| Constructor and Description |
|---|
ByteArrayOutputStreamEx() |
ByteArrayOutputStreamEx(int size) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBuffer() |
void |
readFrom(InputStream is)
Reads the given
InputStream completely into the buffer. |
void |
set(Base64Data dt,
String mimeType) |
close, reset, size, toByteArray, toString, toString, toString, write, write, writeToflush, writepublic ByteArrayOutputStreamEx()
public ByteArrayOutputStreamEx(int size)
public void set(Base64Data dt, String mimeType)
public byte[] getBuffer()
public void readFrom(InputStream is) throws IOException
InputStream completely into the buffer.IOExceptionCopyright © 2017 JBoss by Red Hat. All rights reserved.