public final class ByteArrayOutputStreamEx
extends java.io.ByteArrayOutputStream
ByteArrayOutputStream
with access to its raw buffer.Constructor | Description |
---|---|
ByteArrayOutputStreamEx() |
|
ByteArrayOutputStreamEx(int size) |
Modifier and Type | Method | 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) |
close, reset, size, toByteArray, toString, toString, toString, write, write, writeTo
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
Copyright © 2018 Oracle Corporation. All rights reserved.