public static interface ByteArray.Cursor extends IoRelativeReader, IoRelativeWriter
Cloneable to allow cheap mark/position
emulation?| Modifier and Type | Method and Description |
|---|---|
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 in interface IoRelativeReadergetRemaining in interface IoRelativeWriterboolean hasRemaining()
hasRemaining in interface IoRelativeReaderhasRemaining in interface IoRelativeWritertrue if there are some remaining bytes in the bufferbyte get()
get in interface IoRelativeReaderbyte at the current position and advances the reader.void get(IoBuffer bb)
IoBuffer and advances the reader.get in interface IoRelativeReaderbb - The IoBuffer that will contain the read bytesint getInt()
getInt in interface IoRelativeReaderint and advances the reader.Copyright © 2004–2024 Apache MINA Project. All rights reserved.