ByteArrayOutputStream directly
available as a ByteBuffer.
| Access | Constructor and Description |
|---|---|
| public | NonCopyingByteArrayOutputStream(int
the initial size size)Creates a new byte array output stream, with a buffer capacity of the specified size, in bytes. |
| Modifier and Type | Method and Description |
|---|---|
| public ByteBuffer | Returns: The contents of this ByteArrayOutputstream wrapped as a ByteBufferGet the contents of this ByteArrayOutputStream wrapped as a ByteBuffer. |
| NonCopyingByteArrayOutputStream | back to summary |
|---|---|
| public NonCopyingByteArrayOutputStream(int size) Creates a new byte array output stream, with a buffer capacity of the specified size, in bytes.
| |
| asByteBuffer | back to summary |
|---|---|
| public ByteBuffer asByteBuffer() Get the contents of this ByteArrayOutputStream wrapped as a ByteBuffer. This is a shallow copy. Changes to this ByteArrayOutputstream "write through" to the ByteBuffer.
| |