public static interface ByteArray.Cursor extends IoRelativeReader, IoRelativeWriter
Cloneable
to allow cheap mark/position
emulation?限定符和类型 | 方法和说明 |
---|---|
byte |
get() |
void |
get(IoBuffer bb)
Gets enough bytes to fill the
IoBuffer and advances the reader. |
int |
getIndex() |
int |
getInt() |
int |
getRemaining() |
boolean |
hasRemaining()
Checks if there are any remaining bytes that can be read.
|
void |
setIndex(int index)
Sets the current index of the cursor.
|
int getIndex()
void setIndex(int index)
index
- The current index to setint getRemaining()
getRemaining
在接口中 IoRelativeReader
getRemaining
在接口中 IoRelativeWriter
boolean hasRemaining()
hasRemaining
在接口中 IoRelativeReader
hasRemaining
在接口中 IoRelativeWriter
byte get()
get
在接口中 IoRelativeReader
byte
at the current position and advances the reader.void get(IoBuffer bb)
IoBuffer
and advances the reader.get
在接口中 IoRelativeReader
bb
- The IoBuffer that will contain the read bytesint getInt()
getInt
在接口中 IoRelativeReader
int
and advances the reader.