|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.poi.hpsf.littleendian.LittleEndian
A data item in the little-endian format. Little-endian means that lower bytes come before higher bytes.
Field Summary | |
protected byte[] |
bytes
The bytes making out the little-endian field. |
Constructor Summary | |
LittleEndian(byte[] src,
int offset)
Creates a LittleEndian and reads its value from a
byte array. |
Method Summary | |
byte[] |
getBytes()
Returns the bytes making out the little-endian field in big-endian order. |
abstract int |
length()
Returns the number of bytes of this little-endian field. |
byte[] |
read(byte[] src,
int offset)
Reads the little-endian field from a byte array. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected byte[] bytes
The bytes making out the little-endian field. They are in correct order, i.e. high-endian.
Constructor Detail |
public LittleEndian(byte[] src, int offset)
Creates a LittleEndian
and reads its value from a
byte array.
src
- The byte array to read from.offset
- The offset of the first byte to read.Method Detail |
public byte[] getBytes()
Returns the bytes making out the little-endian field in big-endian order.
public byte[] read(byte[] src, int offset)
Reads the little-endian field from a byte array.
src
- The byte array to read fromoffset
- The offset within the src byte arraypublic abstract int length()
Returns the number of bytes of this little-endian field.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |