public class DirectByteArrayOutputStream
extends java.io.ByteArrayOutputStream
ByteArrayOutputStream by allowing direct access to the internal byte buffer.| Constructor and Description |
|---|
DirectByteArrayOutputStream()
Creates a new instance with a buffer of the default size.
|
DirectByteArrayOutputStream(int capacity)
Creates a new instance with a buffer of the given initial capacity.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBuffer()
Gets the internal byte buffer.
|
public DirectByteArrayOutputStream()
public DirectByteArrayOutputStream(int capacity)
capacity - Initial capacity of internal buffer.