public static interface ByteArray.Cursor extends IoRelativeReader, IoRelativeWriter
Cloneable
to allow cheap mark/position
emulation?Modifier and Type | Method and Description |
---|---|
byte |
get()
Gets a
byte and advances the reader. |
void |
get(IoBuffer bb)
Gets enough bytes to fill the
IoBuffer and advances the reader. |
int |
getIndex()
Gets the current index of the cursor.
|
int |
getInt()
Gets an
int and advances the reader. |
int |
getRemaining()
Gets the number of remaining bytes that can be read.
|
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)
int getRemaining()
IoRelativeReader
getRemaining
in interface IoRelativeReader
getRemaining
in interface IoRelativeWriter
boolean hasRemaining()
IoRelativeReader
hasRemaining
in interface IoRelativeReader
hasRemaining
in interface IoRelativeWriter
byte get()
IoRelativeReader
byte
and advances the reader.get
in interface IoRelativeReader
void get(IoBuffer bb)
IoRelativeReader
IoBuffer
and advances the reader.get
in interface IoRelativeReader
int getInt()
IoRelativeReader
int
and advances the reader.getInt
in interface IoRelativeReader
Copyright © 2004-2019 Apache MINA Project. All Rights Reserved.