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:
- Closeable, Flushable
public final class ByteArrayOutputStreamEx
- extends ByteArrayOutputStream
ByteArrayOutputStream with access to its raw buffer.
ByteArrayOutputStreamEx
public ByteArrayOutputStreamEx()
ByteArrayOutputStreamEx
public ByteArrayOutputStreamEx(int size)
set
public void set(Base64Data dt,
String mimeType)
getBuffer
public byte[] getBuffer()
readFrom
public void readFrom(InputStream is)
throws IOException
- Reads the given
InputStream completely into the buffer.
- Throws:
IOException
Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.