Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.pdfbox.io
Class FastByteArrayOutputStream

    java.lang.Object
      java.io.OutputStream
          java.io.ByteArrayOutputStream
              org.pdfbox.io.FastByteArrayOutputStream

public class FastByteArrayOutputStream
extends ByteArrayOutputStream

An byte array output stream that allows direct access to the byte array.

Version:
  $Revision: 1.3 $
Author:
  Ben Litchfield (ben@csh.rit.edu)

Field Summary

Fields inherited from class java.io.ByteArrayOutputStream
`buf, count`

Constructor Summary
`FastByteArrayOutputStream(int size)` Constructor.

Method Summary
`byte[]` | `getByteArray()` This will get the underlying byte array.

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`

Constructor Detail

### FastByteArrayOutputStream

    public FastByteArrayOutputStream(int size)

  Constructor.

Parameters:
  `size` - An initial size of the stream.

Method Detail

### getByteArray

    public byte[] getByteArray()

  This will get the underlying byte array.

  Returns:
    The underlying byte array at this moment in time.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD