|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.AbstractMap | +--java.util.HashMap | +--org.apache.poi.hpsf.wellknown.SectionIDMap
Maps section format IDs to PropertyIDMap
s. It is
initialized with two well-known section format IDs: those of the
\005SummaryInformation stream and the
\005DocumentSummaryInformation stream.
If you have a section format ID you can use it as a key to query
this map. If you get a PropertyIDMap
returned your section
is well-known and you can query the PropertyIDMap
for PID
strings. If you get back null
you are on your own.
This Map
expects the byte arrays of section format IDs
as keys. A key maps to a PropertyIDMap
describing the
property IDs in sections with the specified section format ID.
Inner classes inherited from class java.util.Map |
java.util.Map.Entry |
Field Summary | |
static byte[] |
DOCUMENT_SUMMARY_INFORMATION_ID
The DocumentSummaryInformation's first section's format ID. |
static byte[] |
SUMMARY_INFORMATION_ID
The SummaryInformation's section's format ID. |
static java.lang.String |
UNDEFINED
|
Constructor Summary | |
SectionIDMap()
|
Method Summary | |
PropertyIDMap |
get(byte[] sectionFormatID)
Returns the PropertyIDMap for a given section format
ID. |
java.lang.Object |
get(java.lang.Object sectionFormatID)
Deprecated. Use get(byte[]) instead! |
static SectionIDMap |
getInstance()
Returns the singleton instance of the default SectionIDMap . |
static java.lang.String |
getPIDString(byte[] sectionFormatID,
int pid)
Returns the property ID string that is associated with a given property ID in a section format ID's namespace. |
java.lang.Object |
put(byte[] sectionFormatID,
PropertyIDMap propertyIDMap)
Associates a section format ID with a PropertyIDMap . |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Deprecated. Use put(byte[], PropertyIDMap) instead! |
Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, isEmpty, keySet, putAll, remove, size, values |
Methods inherited from class java.util.AbstractMap |
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
equals, hashCode |
Field Detail |
public static final byte[] SUMMARY_INFORMATION_ID
The SummaryInformation's section's format ID.
public static final byte[] DOCUMENT_SUMMARY_INFORMATION_ID
The DocumentSummaryInformation's first section's format ID. The second section has a different format ID which is not well-known.
public static final java.lang.String UNDEFINED
Constructor Detail |
public SectionIDMap()
Method Detail |
public static SectionIDMap getInstance()
Returns the singleton instance of the default SectionIDMap
.
public static java.lang.String getPIDString(byte[] sectionFormatID, int pid)
Returns the property ID string that is associated with a given property ID in a section format ID's namespace.
sectionFormatID
- Each section format ID has its own name
space of property ID strings and thus must be specified.pid
- The property IDpublic PropertyIDMap get(byte[] sectionFormatID)
Returns the PropertyIDMap
for a given section format
ID.
public java.lang.Object get(java.lang.Object sectionFormatID)
get(byte[])
instead!
Returns the PropertyIDMap
for a given section format
ID.
get
in class java.util.HashMap
sectionFormatID
- A section format ID as a
byte[].public java.lang.Object put(byte[] sectionFormatID, PropertyIDMap propertyIDMap)
Associates a section format ID with a PropertyIDMap
.
public java.lang.Object put(java.lang.Object key, java.lang.Object value)
put(byte[], PropertyIDMap)
instead!
put
in class java.util.HashMap
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |