public interface IoRelativeReader
限定符和类型 | 方法和说明 |
---|---|
byte |
get() |
void |
get(IoBuffer bb)
Gets enough bytes to fill the
IoBuffer and advances the reader. |
char |
getChar() |
double |
getDouble() |
float |
getFloat() |
int |
getInt() |
long |
getLong() |
int |
getRemaining() |
short |
getShort() |
boolean |
hasRemaining()
Checks if there are any remaining bytes that can be read.
|
java.nio.ByteOrder |
order() |
void |
skip(int length)
Advances the reader by the given number of bytes.
|
ByteArray |
slice(int length) |
int getRemaining()
boolean hasRemaining()
void skip(int length)
length
- the number of bytes to skipByteArray slice(int length)
length
- The number of bytes to getjava.nio.ByteOrder order()
byte get()
byte
at the current position and advances the reader.void get(IoBuffer bb)
IoBuffer
and advances the reader.bb
- The IoBuffer that will contain the read bytesshort 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.