|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.poi.hpsf.Property
A property in a Section
of a PropertySet
.
The property's ID gives the property a meaning
in the context of its Section
. Each Section
spans
its own name space of property IDs.
The property's type determines how its
value is interpreted. For example, if the type is
Variant.VT_LPSTR
(byte string), the value consists of a
DWord
telling how many bytes the string contains. The bytes
follow immediately, including any null bytes that terminate the
string. The type Variant.VT_I4
denotes a four-byte integer
value, Variant.VT_FILETIME
some date and time (of a
file).
FIXME: Reading of other types than those mentioned above and the dictionary property is not yet implemented.
Section
,
Variant
Constructor Summary | |
Property(int id,
byte[] src,
int offset,
int length)
Creates a Property instance by reading its bytes
from the property set stream. |
Method Summary | |
int |
getID()
Returns the property's ID. |
int |
getType()
Returns the property's type. |
java.lang.Object |
getValue()
Returns the property value's. |
protected int |
readCodePage(byte[] src,
int offset)
Reads a code page. |
protected java.util.Map |
readDictionary(byte[] src,
int offset,
int length)
Reads a dictionary. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Property(int id, byte[] src, int offset, int length)
Creates a Property
instance by reading its bytes
from the property set stream.
id
- The property's ID.src
- The bytes the property set stream consists of.offset
- The property's type/value pair's offset in the
section.length
- The property's type/value pair's length in bytes.
list.Method Detail |
public int getID()
Returns the property's ID.
public int getType()
Returns the property's type.
public java.lang.Object getValue()
Returns the property value's.
protected java.util.Map readDictionary(byte[] src, int offset, int length)
Reads a dictionary.
src
- The byte array containing the bytes making out the
dictionary.offset
- At this offset within src the
dictionary starts.length
- The dictionary contains at most this many bytes.protected int readCodePage(byte[] src, int offset)
Reads a code page.
src
- The byte array containing the bytes making out the
code page.offset
- At this offset within src the code
page starts.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |