ByteArray
BufferByteArray
, CompositeByteArray
public interface IoAbsoluteReader
Modifier and Type | Method | Description |
---|---|---|
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() |
|
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 copyByteOrder 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 positionCopyright © 2004–2018 Apache MINA Project. All rights reserved.