edu.vt.middleware.crypt.io
Class DirectByteArrayOutputStream
java.lang.Object
java.io.OutputStream
java.io.ByteArrayOutputStream
edu.vt.middleware.crypt.io.DirectByteArrayOutputStream
- All Implemented Interfaces:
- Closeable, Flushable
public class DirectByteArrayOutputStream
- extends ByteArrayOutputStream
Extends ByteArrayOutputStream by allowing direct access to
the internal byte buffer.
- Version:
- $Revision: 2744 $
- Author:
- Middleware Services
|
Method Summary |
byte[] |
getBuffer()
Gets the internal byte buffer. |
DirectByteArrayOutputStream
public DirectByteArrayOutputStream()
- Creates a new instance with a buffer of the default size.
DirectByteArrayOutputStream
public DirectByteArrayOutputStream(int capacity)
- Creates a new instance with a buffer of the given initial capacity.
- Parameters:
capacity - Initial capacity of internal buffer.
getBuffer
public byte[] getBuffer()
- Gets the internal byte buffer.
- Returns:
- Internal buffer that holds written bytes.
Copyright © 2003-2013 Virginia Tech. All Rights Reserved.