Package org.apache.pdfbox.io
Class FastByteArrayOutputStream
java.lang.Object
java.io.OutputStream
java.io.ByteArrayOutputStream
org.apache.pdfbox.io.FastByteArrayOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
An byte array output stream that allows direct access to the byte array.
- Version:
- $Revision: 1.4 $
- Author:
- Ben Litchfield
-
Field Summary
Fields inherited from class java.io.ByteArrayOutputStream
buf, count
-
Constructor Summary
Constructors -
Method Summary
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
-
FastByteArrayOutputStream
public FastByteArrayOutputStream(int size) Constructor.- Parameters:
size
- An initial size of the stream.
-
-
Method Details
-
getByteArray
public byte[] getByteArray()This will get the underlying byte array.- Returns:
- The underlying byte array at this moment in time.
-