Closeable
, Flushable
, AutoCloseable
public 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, writeTo
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
flush, write
public 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.IOException
Copyright © 2018 Oracle Corporation. All rights reserved.