ByteStreamWriter that writes a java.nio.ByteBuffer to a byte array
parameter.
| Modifier and Type | Field and Description |
|---|---|
| private final ByteBuffer[] | |
| private final int |
| Access | Constructor and Description |
|---|---|
| pack-priv | ByteBuffersByteStreamWriter(ByteBuffer...
the buffer to use. buffers)Construct the writer with the given |
| Modifier and Type | Method and Description |
|---|---|
| public int | getLength()
Implements org. Returns the length of the stream. |
| public void | writeTo(ByteStreamWriter.
the stream to write the data to targetImplements org. Write the data to the provided |
| buffers | back to summary |
|---|---|
| private final ByteBuffer[] buffers | |
| length | back to summary |
|---|---|
| private final int length | |
| ByteBuffersByteStreamWriter | back to summary |
|---|---|
| pack-priv ByteBuffersByteStreamWriter(ByteBuffer... buffers) Construct the writer with the given
| |
| getLength | back to summary |
|---|---|
| public int getLength() Implements org. Doc from org. Returns the length of the stream. This must be known ahead of calling
| |
| writeTo | back to summary |
|---|---|
| public void writeTo(ByteStreamWriter. Implements org. Doc from org. Write the data to the provided Should not write more than
| |