java.lang.Object
java.io.OutputStream
java.io.ByteArrayOutputStream
org.jvnet.staxex.ByteArrayOutputStreamEx
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
ByteArrayOutputStream
with access to its raw buffer.-
Field Summary
Fields inherited from class java.io.ByteArrayOutputStream
buf, count
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
void
readFrom
(InputStream is) Reads the givenInputStream
completely into the buffer.void
set
(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
-
Constructor Details
-
ByteArrayOutputStreamEx
public ByteArrayOutputStreamEx() -
ByteArrayOutputStreamEx
public ByteArrayOutputStreamEx(int size)
-
-
Method Details
-
set
-
getBuffer
public byte[] getBuffer() -
readFrom
Reads the givenInputStream
completely into the buffer.- Throws:
IOException
-