|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IoAbsoluteReader
Provides absolute read access to a sequence of bytes.
Method Summary | |
---|---|
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. |
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. |
Method Detail |
---|
int first()
int last()
int length()
ByteArray slice(int index, int length)
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |