public interface IoRelativeReader
Modifier and Type | Method and Description |
---|---|
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.
|
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 getByteOrder 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.Copyright © 2004–2018 Apache MINA Project. All rights reserved.