public class DirectByteArrayOutputStream extends ByteArrayOutputStream
ByteArrayOutputStream
by allowing direct access to the internal byte buffer.buf, count
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.
|
close, reset, size, toByteArray, toString, toString, toString, write, write, writeTo
flush, write
public DirectByteArrayOutputStream()
public DirectByteArrayOutputStream(int capacity)
capacity
- Initial capacity of internal buffer.Copyright © 2003-2024 Virginia Tech. All Rights Reserved.