|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.poi.hpsf.ClassID
Represents a class ID (16 bytes). Unlike other little-endian
type the ClassID
is not just 16 bytes stored in the wrong
order. Instead, it is a double word (4 bytes) followed by two
words (2 bytes each) followed by 8 bytes.
Field Summary | |
protected byte[] |
bytes
The bytes making out the class ID in correct order, i.e. big-endian. |
static int |
LENGTH
|
Constructor Summary | |
ClassID(byte[] src,
int offset)
Creates a ClassID and reads its value from a byte
array. |
Method Summary | |
byte[] |
getBytes()
Gets the bytes making out the class ID. |
int |
length()
|
byte[] |
read(byte[] src,
int offset)
Reads a class ID from a byte array by turning little-endian into big-endian. |
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 class ID in correct order, i.e. big-endian.
public static final int LENGTH
Constructor Detail |
public ClassID(byte[] src, int offset)
Creates a ClassID
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 int length()
public byte[] getBytes()
Gets the bytes making out the class ID. They are returned in correct order, i.e. big-endian.
public byte[] read(byte[] src, int offset)
Reads a class ID from a byte array by turning little-endian into big-endian.
src
- The byte array to read fromoffset
- The offset within the src byte array
|
jakarta-poi 1.10.0-dev | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |