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 在接口中 IoRelativeReadergetRemaining 在接口中 IoRelativeWriterboolean hasRemaining()
hasRemaining 在接口中 IoRelativeReaderhasRemaining 在接口中 IoRelativeWriterbyte get()
get 在接口中 IoRelativeReaderbyte at the current position and advances the reader.void get(IoBuffer bb)
IoBuffer and advances the reader.get 在接口中 IoRelativeReaderbb - The IoBuffer that will contain the read bytesint getInt()
getInt 在接口中 IoRelativeReaderint and advances the reader.