public interface ByteArrayBuffer extends ByteArray, ByteBuffer
ByteBuffer
but a lot simpler. However it
allows to set the current index
so the internal buffer
-array can be
consumed externally and proceeded very fast. Modifier and Type | Method and Description |
---|---|
void |
setCurrentIndex(int currentIndex)
This method sets the
currentIndex . |
createSubArray, getBytes, getBytesAvailable, getCurrentIndex, getMaximumIndex, getMinimumIndex
hasNext, next, peek, skip
void setCurrentIndex(int currentIndex)
currentIndex
. This can be useful e.g. if data from the
buffer
has been consumed externally. currentIndex
- is the currentIndex
to set. It has to be in the range from
minimumIndex
to maximumIndex
+ 1
. A value
of maximumIndex
+ 1
indicates that the buffer is consumed.Copyright © 2001–2016 mmm-Team. All rights reserved.