- java.lang.Object
-
- java.io.OutputStream
-
- java.io.ByteArrayOutputStream
-
- org.glassfish.jaxb.runtime.v2.util.ByteArrayOutputStreamEx
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
public final class ByteArrayOutputStreamEx extends ByteArrayOutputStream
ByteArrayOutputStreamwith access to its raw buffer.
-
-
Field Summary
-
Fields inherited from class java.io.ByteArrayOutputStream
buf, count
-
-
Constructor Summary
Constructors Constructor Description ByteArrayOutputStreamEx()ByteArrayOutputStreamEx(int size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getBuffer()voidreadFrom(InputStream is)Reads the givenInputStreamcompletely into the buffer.voidset(Base64Data dt, String mimeType)-
Methods inherited from class java.io.ByteArrayOutputStream
close, reset, size, toByteArray, toString, toString, toString, toString, write, write, writeBytes, writeTo
-
Methods inherited from class java.io.OutputStream
flush, nullOutputStream, write
-
-
-
-
Method Detail
-
set
public void set(Base64Data dt, String mimeType)
-
getBuffer
public byte[] getBuffer()
-
readFrom
public void readFrom(InputStream is) throws IOException
Reads the givenInputStreamcompletely into the buffer.- Throws:
IOException
-
-