org.pdfbox.io

Class FastByteArrayOutputStream


public class FastByteArrayOutputStream
extends ByteArrayOutputStream

An byte array output stream that allows direct access to the byte array.
Version:
$Revision: 1.4 $
Author:
Ben Litchfield

Constructor Summary

FastByteArrayOutputStream(int size)
Constructor.

Method Summary

byte[]
getByteArray()
This will get the underlying byte array.

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.