\005SummaryInformation and \005DocumentSummaryInformation.
However, a POI filesystem may contain further property sets of other names or types.
In order to extract the properties from a POI filesystem, a property set stream's contents must be parsed into a
org. instance. Its subclasses org.
and org. deal with the well-known property set streams
\005SummaryInformation and \005DocumentSummaryInformation.
(However, the streams' names are irrelevant. What counts is the property set's first section's format ID - see below.)
The factory method org. creates a PropertySet instance.
This method always returns the most specific property set:
If it identifies the stream data as a Summary Information or as a Document Summary Information it returns an
instance of the corresponding class, else the general PropertySet.
A PropertySet contains a list of Sections which can be
retrieved with org.. Each Section contains a
org. array which can be retrieved with
org.. Since the vast majority of PropertySets contains only a single Section,
the convenience method org. returns the properties of a
PropertySets Section (throwing a org. if the PropertySet contains
more (or less) than exactly one Section).
Each Property has an ID, a type, and a value which can be
retrieved with org., org.,
and org., respectively. The value's class depends on the property's type.
The current implementation does not yet support all property types and restricts the values' classes
to String, Integer and Date. A value of a yet unknown type is returned as a byte array containing the values
origin bytes from the property set stream.
To retrieve the value of a specific Property, use org. or
org..
The SummaryInformation and DocumentSummaryInformation classes provide convenience methods for retrieving well-known
properties. For example, an application that wants to retrieve a document's title string just calls
org. instead of going through the hassle of first finding out
what the title's property ID is and then using this ID to get the property's value.
| Modifier and Type | Class and Description |
|---|---|
| public class | |
| public class | |
| public class | ClassID
Represents a class ID (16 bytes). |
| public class | |
| public class | |
| public class | |
| public class | CustomProperties
Maintains the instances of |
| public class | CustomProperty
This class represents custom properties in the document summary information stream. |
| public class | |
| public class | |
| public class | DocumentSummaryInformation
Convenience class representing a DocumentSummary Information stream in a Microsoft Office document. |
| public class | Filetime
The Windows FILETIME structure holds a date and time associated with a file. |
| public class | |
| public class | HPSFException
This exception is the superclass of all other checked exceptions thrown in this package. |
| public class | HPSFPropertiesOnlyDocument
A version of |
| public class | HPSFRuntimeException
This exception is the superclass of all other unchecked exceptions thrown in this package. |
| public class | IllegalPropertySetDataException
This exception is thrown when there is an illegal value set in a
|
| public class | IllegalVariantTypeException
This exception is thrown if HPSF encounters a variant type that is illegal in the current context. |
| public class | |
| public class | MissingSectionException
This exception is thrown if one of the |
| public class | NoFormatIDException
This exception is thrown if a |
| public class | NoPropertySetStreamException
This exception is thrown if a format error in a property set stream is detected or when the input data do not constitute a property set stream. |
| public class | NoSingleSectionException
This exception is thrown if one of the |
| public class | Property
A property in a |
| public class | PropertySet
Represents a property set in the Horrible Property Set Format (HPSF). |
| public class | PropertySetFactory
Factory class to create instances of |
| public class | ReadingNotSupportedException
This exception is thrown when HPSF tries to read a (yet) unsupported variant type. |
| public class | Section
Represents a section in a |
| public class | SummaryInformation
Convenience class representing a Summary Information stream in a Microsoft Office document. |
| public class | |
| public class | |
| public class | UnexpectedPropertySetTypeException
This exception is thrown if a certain type of property set is expected (e.g. a Document Summary Information) but the provided property set is not of that type. |
| public class | |
| public abstract class | UnsupportedVariantTypeException
This exception is thrown if HPSF encounters a variant type that isn't supported yet. |
| public class | Variant
The |
| public class | |
| public class | VariantSupport
Supports reading and writing of variant data. |
| public abstract class | VariantTypeException
This exception is thrown if HPSF encounters a problem with a variant type. |
| public class | Vector
Holder for vector-type properties |
| public class | |
| public class | WritingNotSupportedException
This exception is thrown when trying to write a (yet) unsupported variant type. |
| Modifier and Type | Enum and Description |
|---|---|
| public enum |