A collection of interfaces, factories, wrapper, and helper classes for java.nio.
- A random access buffer wrapping a
byte[]
. Combines the resize-ability ofByteArrayOutputStream
, the indexed positioning ofByteBuffer
, and the read/write utility methods ofDataOutput
. Also includeswriteVarInt()
andreadVarInt()
which read/write the minimum number of bytes needed for a given int, based on the protobuf variable int encoding format.
- A factory interface and implementation for
ByteBuffer
s
- An interface matching
java.nio.ByteBuffer
and a wrapper for a ByteBuffer which implements this interface
- A manager for a set of
ByteBuffer
s, which provideshasInstance()
,getInstance()
, andreturnInstance()
methods and internally maintains a list of buffers with a maximum number of allowed buffers.
- A wrapper for a
byte[]
with anoffset
and alength
withremoveHead()
andremoveTail()
methods.