public interface IoAbsoluteReader
限定符和类型 | 方法和说明 |
---|---|
int |
first() |
byte |
get(int index) |
void |
get(int index,
IoBuffer bb)
Gets enough bytes to fill the IoBuffer from the given index.
|
char |
getChar(int index) |
double |
getDouble(int index) |
float |
getFloat(int index) |
int |
getInt(int index) |
long |
getLong(int index) |
short |
getShort(int index) |
int |
last() |
int |
length() |
java.nio.ByteOrder |
order() |
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)
index
- The starting positionlength
- The number of bytes to copyjava.nio.ByteOrder order()
byte get(int index)
index
- The starting positionvoid get(int index, IoBuffer bb)
index
- The starting positionbb
- The IoBuffer that will be filled with the bytesshort getShort(int index)
index
- The starting positionint getInt(int index)
index
- The starting positionlong getLong(int index)
index
- The starting positionfloat getFloat(int index)
index
- The starting positiondouble getDouble(int index)
index
- The starting positionchar getChar(int index)
index
- The starting position