public interface IoAbsoluteReader
Modifier and Type | Method and Description |
---|---|
int |
first()
Get the index of the first byte that can be accessed.
|
byte |
get(int index)
Gets a
byte from the given index. |
void |
get(int index,
IoBuffer bb)
Gets enough bytes to fill the
IoBuffer from the given index. |
char |
getChar(int index)
Gets a
char from the given index. |
double |
getDouble(int index)
Gets a
double from the given index. |
float |
getFloat(int index)
Gets a
float from the given index. |
int |
getInt(int index)
Gets an
int from the given index. |
long |
getLong(int index)
Gets a
long from the given index. |
short |
getShort(int index)
Gets a
short from the given index. |
int |
last()
Gets the index after the last byte that can be accessed.
|
int |
length()
Gets the total number of bytes that can be accessed.
|
java.nio.ByteOrder |
order()
Gets the order of the bytes.
|
ByteArray |
slice(int index,
int length)
Creates an array with a view of part of this array.
|
int first()
int last()
int length()
ByteArray slice(int index, int length)
java.nio.ByteOrder order()
byte get(int index)
byte
from the given index.void get(int index, IoBuffer bb)
IoBuffer
from the given index.short getShort(int index)
short
from the given index.int getInt(int index)
int
from the given index.long getLong(int index)
long
from the given index.float getFloat(int index)
float
from the given index.double getDouble(int index)
double
from the given index.char getChar(int index)
char
from the given index.Copyright © 2004-2019 Apache MINA Project. All Rights Reserved.