public interface IoRelativeReader
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. |
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.
|
java.nio.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.
|
int getRemaining()
boolean hasRemaining()
void skip(int length)
ByteArray slice(int length)
java.nio.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.Copyright © 2004-2019 Apache MINA Project. All Rights Reserved.