Package org.jgrapes.io.util
Class ManagedBuffer.ByteBufferView
java.lang.Object
org.jgrapes.io.util.ManagedBuffer.ByteBufferView
- Enclosing class:
ManagedBuffer<T extends Buffer>
A read-only view of the managed buffer’s content
(backing buffer) and a reference to the managed buffer.
Can be used if several consumers need the same content.
-
Method Summary
Modifier and TypeMethodDescriptionget()
Returns theByteBuffer
that represents this view (position, mark, limit).Returns the managed buffer that this reader is a view of.
-
Method Details
-
get
Returns theByteBuffer
that represents this view (position, mark, limit).- Returns:
- the
ByteBuffer
view
-
managedBuffer
Returns the managed buffer that this reader is a view of.- Returns:
- the managed buffer
-