- readableByteCount
Return the number of bytes that can be read from this data buffer.
- read
Read at most length bytes of this buffer into the specified destination,
starting at the current rea
- write
Write one or more DataBuffers to this buffer, starting at the current writing
position. It is the re
- asByteBuffer
Expose a subsequence of this buffer's bytes as a ByteBuffer. Data between this
DataBuffer and the re
- asOutputStream
Expose this buffer's data as an OutputStream. Both data and write position are
shared between the re
- slice
Create a new DataBuffer whose contents is a shared subsequence of this data
buffer's content. Data b
- asInputStream
Expose this buffer's data as an InputStream. Both data and read position are
shared between the retu
- capacity
Set the number of bytes that this buffer can contain.If the new capacity is
lower than the current c
- readPosition
Set the position from which this buffer will read.
- getByte
Read a single byte at the given index from this data buffer.
- writableByteCount
Return the number of bytes that can be written to this data buffer.
- writePosition
Set the position to which this buffer will write.