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
ByteBuffers
- An interface matching
java.nio.ByteBufferand a wrapper for a ByteBuffer which implements this interface
- A manager for a set of
ByteBuffers, 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 anoffsetand alengthwithremoveHead()andremoveTail()methods.