Closeable, Flushable, AutoCloseablepublic final class ByteArrayOutputStreamEx extends ByteArrayOutputStream
ByteArrayOutputStream with access to its raw buffer.buf, count| Constructor | Description |
|---|---|
ByteArrayOutputStreamEx() |
|
ByteArrayOutputStreamEx(int size) |
| Modifier and Type | Method | 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, toString, write, write, writeToclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitflush, 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 © 2018 Oracle Corporation. All rights reserved.