|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IoRelativeReader
Provides relative read access to a sequence of bytes.
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. |
char |
getChar()
Gets a char and advances the reader. |
double |
getDouble()
Gets a double and advances the reader. |
float |
getFloat()
Gets a float and advances the reader. |
int |
getInt()
Gets an int and advances the reader. |
long |
getLong()
Gets a long and advances the reader. |
int |
getRemaining()
Gets the number of remaining bytes that can be read. |
short |
getShort()
Gets a short and advances the reader. |
boolean |
hasRemaining()
Checks if there are any remaining bytes that can be read. |
ByteOrder |
order()
Gets the order of the bytes. |
void |
skip(int length)
Advances the reader by the given number of bytes. |
ByteArray |
slice(int length)
Creates an array with a view of part of this array. |
Method Detail |
---|
int getRemaining()
boolean hasRemaining()
void skip(int length)
ByteArray slice(int length)
ByteOrder order()
byte get()
byte
and advances the reader.
void get(IoBuffer bb)
IoBuffer
and advances the reader.
short getShort()
short
and advances the reader.
int getInt()
int
and advances the reader.
long getLong()
long
and advances the reader.
float getFloat()
float
and advances the reader.
double getDouble()
double
and advances the reader.
char getChar()
char
and advances the reader.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |