|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public static interface ByteArray.Cursor
Provides relocatable, relative access to the underlying array. Multiple
cursors may be used simultaneously, and cursors will stay consistent with
the underlying array, even across modifications.
Should this be Cloneable to allow cheap mark/position
emulation?
| Method Summary | |
|---|---|
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. |
| Methods inherited from interface org.apache.mina.util.byteaccess.IoRelativeReader |
|---|
getChar, getDouble, getFloat, getLong, getShort, order, skip, slice |
| Methods inherited from interface org.apache.mina.util.byteaccess.IoRelativeWriter |
|---|
order, put, put, putChar, putDouble, putFloat, putInt, putLong, putShort, skip |
| Method Detail |
|---|
int getIndex()
void setIndex(int index)
int getRemaining()
IoRelativeReader
getRemaining in interface IoRelativeReadergetRemaining in interface IoRelativeWriterboolean hasRemaining()
IoRelativeReader
hasRemaining in interface IoRelativeReaderhasRemaining in interface IoRelativeWriterbyte get()
IoRelativeReaderbyte and advances the reader.
get in interface IoRelativeReadervoid get(IoBuffer bb)
IoRelativeReaderIoBuffer and advances the reader.
get in interface IoRelativeReaderint getInt()
IoRelativeReaderint and advances the reader.
getInt in interface IoRelativeReader
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||