com.sun.xml.bind.v2.util
Class ByteArrayOutputStreamEx
java.lang.Object
java.io.OutputStream
java.io.ByteArrayOutputStream
com.sun.xml.bind.v2.util.ByteArrayOutputStreamEx
- All Implemented Interfaces:
- java.io.Closeable, java.io.Flushable
public final class ByteArrayOutputStreamEx
- extends java.io.ByteArrayOutputStream
ByteArrayOutputStream
with access to its raw buffer.
Fields inherited from class java.io.ByteArrayOutputStream |
buf, count |
Method Summary |
byte[] |
getBuffer()
|
void |
readFrom(java.io.InputStream is)
Reads the given InputStream completely into the buffer. |
void |
set(Base64Data dt,
java.lang.String mimeType)
|
Methods inherited from class java.io.ByteArrayOutputStream |
close, reset, size, toByteArray, toString, toString, toString, write, write, writeTo |
Methods inherited from class java.io.OutputStream |
flush, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ByteArrayOutputStreamEx
public ByteArrayOutputStreamEx()
ByteArrayOutputStreamEx
public ByteArrayOutputStreamEx(int size)
set
public void set(Base64Data dt,
java.lang.String mimeType)
getBuffer
public byte[] getBuffer()
readFrom
public void readFrom(java.io.InputStream is)
throws java.io.IOException
- Reads the given
InputStream
completely into the buffer.
- Throws:
java.io.IOException