Fields Summary |
---|
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 and second sections' format
ID. |
public static final String | UNDEFINED A property without a known name is described by this string. |
private static SectionIDMap | defaultMap The default section ID map. It maps section format IDs to
{@link PropertyIDMap}s. |
Methods Summary |
---|
public org.apache.poi.hpsf.wellknown.PropertyIDMap | get(byte[] sectionFormatID)Returns the {@link PropertyIDMap} for a given section format
ID.
return (PropertyIDMap) super.get(new String(sectionFormatID));
|
public java.lang.Object | get(java.lang.Object sectionFormatID)Returns the {@link PropertyIDMap} for a given section format
ID.
return get((byte[]) sectionFormatID);
|
public static org.apache.poi.hpsf.wellknown.SectionIDMap | getInstance()Returns the singleton instance of the default {@link
SectionIDMap}.
if (defaultMap == null)
{
final SectionIDMap m = new SectionIDMap();
m.put(SUMMARY_INFORMATION_ID,
PropertyIDMap.getSummaryInformationProperties());
m.put(DOCUMENT_SUMMARY_INFORMATION_ID[0],
PropertyIDMap.getDocumentSummaryInformationProperties());
defaultMap = m;
}
return defaultMap;
|
public static java.lang.String | getPIDString(byte[] sectionFormatID, long pid)Returns the property ID string that is associated with a
given property ID in a section format ID's namespace.
final PropertyIDMap m = getInstance().get(sectionFormatID);
if (m == null)
return UNDEFINED;
else
{
final String s = (String) m.get(pid);
if (s == null)
return UNDEFINED;
return s;
}
|
public java.lang.Object | put(byte[] sectionFormatID, org.apache.poi.hpsf.wellknown.PropertyIDMap propertyIDMap)Associates a section format ID with a {@link
PropertyIDMap}.
return super.put(new String(sectionFormatID), propertyIDMap);
|
public java.lang.Object | put(java.lang.Object key, java.lang.Object value)
return put((byte[]) key, (PropertyIDMap) value);
|