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 |
|---|---|
| public | ByteBufferByteStreamWriter(ByteBuffer
the buffer to use. buf)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 |
| buf | back to summary |
|---|---|
| private final ByteBuffer buf | |
| length | back to summary |
|---|---|
| private final int length | |
| ByteBufferByteStreamWriter | back to summary |
|---|---|
| public ByteBufferByteStreamWriter(ByteBuffer buf) 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
| |