ByteBuffer.
This class is not thread safe.
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static BufferedData | |
| public final int | capacity()
Overrides org. |
| public final void | |
| public final ByteBuffer | |
| public final boolean | hasData()
Overrides org. |
| public final int | length()
Overrides org. |
| public final void | |
| public final int | |
| public final int |
| BufferedData | back to summary |
|---|---|
| protected BufferedData(final int bufferSize) | |
| allocate | back to summary |
|---|---|
| public static BufferedData allocate(final int bufferSize) | |
| capacity | back to summary |
|---|---|
| public final int capacity() Overrides org. Doc from org. Returns available capacity of this buffer.
| |
| clear | back to summary |
|---|---|
| public final void clear() Overrides org. Doc from org. Clears buffer. Sets the mode to input.
| |
| data | back to summary |
|---|---|
| public final ByteBuffer data() | |
| hasData | back to summary |
|---|---|
| public final boolean hasData() Overrides org. Doc from org. Determines if the buffer contains data. Sets the mode to output.
| |
| length | back to summary |
|---|---|
| public final int length() Overrides org. Doc from org. Returns the length of this buffer. Sets the mode to output.
| |
| put | back to summary |
|---|---|
| public final void put(final ByteBuffer src) | |
| readFrom | back to summary |
|---|---|
| public final int readFrom(final ReadableByteChannel channel) throws IOException | |
| writeTo | back to summary |
|---|---|
| public final int writeTo(final WritableByteChannel dst) throws IOException | |