org.apache.poi.hpsf.littleendian
Class ClassID
java.lang.Object
|
+--org.apache.poi.hpsf.littleendian.LittleEndian
|
+--org.apache.poi.hpsf.littleendian.ClassID
- public class ClassID
- extends LittleEndian
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.
- Since:
- 2002-02-09
- Version:
- $Id: ClassID.java,v 1.1 2002/02/14 04:00:59 mjohnson Exp $
- Author:
- Rainer Klute (klute@rainer-klute.de)
- See Also:
LittleEndian
Field Summary |
static int |
LENGTH
|
Constructor Summary |
ClassID(byte[] src,
int offset)
Creates a ClassID and reads its value from a byte
array. |
Method Summary |
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 |
LENGTH
public static final int LENGTH
ClassID
public ClassID(byte[] src,
int offset)
Creates a ClassID
and reads its value from a byte
array.
- Parameters:
src
- The byte array to read from.offset
- The offset of the first byte to read.
length
public int length()
- Description copied from class:
LittleEndian
Returns the number of bytes of this little-endian field.
- Overrides:
length
in class LittleEndian
read
public byte[] read(byte[] src,
int offset)
- Description copied from class:
LittleEndian
Reads the little-endian field from a byte array.
- Overrides:
read
in class LittleEndian
- Following copied from class:
org.apache.poi.hpsf.littleendian.LittleEndian
- Parameters:
src
- The byte array to read fromoffset
- The offset within the src byte array
Copyright © 2002 Apache jakarta-poi project. All Rights Reserved.