Package org.apache.poi.hpsf
Class PropertySetFactory
- java.lang.Object
- 
- org.apache.poi.hpsf.PropertySetFactory
 
- 
 public class PropertySetFactory extends Object Factory class to create instances ofSummaryInformation,DocumentSummaryInformationandPropertySet.
- 
- 
Constructor SummaryConstructors Constructor Description PropertySetFactory()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static PropertySetcreate(InputStream stream)Creates the most specificPropertySetfrom anInputStream.static PropertySetcreate(DirectoryEntry dir, String name)Creates the most specificPropertySetfrom an entry in the specified POIFS Directory.static DocumentSummaryInformationnewDocumentSummaryInformation()Creates a new document summary information.static SummaryInformationnewSummaryInformation()Creates a new summary information.
 
- 
- 
- 
Method Detail- 
createpublic static PropertySet create(DirectoryEntry dir, String name) throws FileNotFoundException, NoPropertySetStreamException, IOException, UnsupportedEncodingException Creates the most specificPropertySetfrom an entry in the specified POIFS Directory. This is preferrably aDocumentSummaryInformationor aSummaryInformation. If the specified entry does not contain a property set stream, an exception is thrown. If no entry is found with the given name, an exception is thrown.- Parameters:
- dir- The directory to find the PropertySet in
- name- The name of the entry containing the PropertySet
- Returns:
- The created PropertySet.
- Throws:
- FileNotFoundException- if there is no entry with that name
- NoPropertySetStreamException- if the stream does not contain a property set.
- IOException- if some I/O problem occurs.
- UnsupportedEncodingException- if the specified codepage is not supported.
 
 - 
createpublic static PropertySet create(InputStream stream) throws NoPropertySetStreamException, IOException Creates the most specificPropertySetfrom anInputStream. This is preferrably aDocumentSummaryInformationor aSummaryInformation. If the specifiedInputStreamdoes not contain a property set stream, an exception is thrown and theInputStreamis repositioned at its beginning.- Parameters:
- stream- Contains the property set stream's data.
- Returns:
- The created PropertySet.
- Throws:
- NoPropertySetStreamException- if the stream does not contain a property set.
- IOException- if some I/O problem occurs.
- UnsupportedEncodingException- if the specified codepage is not supported.
 
 - 
newSummaryInformationpublic static SummaryInformation newSummaryInformation() Creates a new summary information.- Returns:
- the new summary information.
 
 - 
newDocumentSummaryInformationpublic static DocumentSummaryInformation newDocumentSummaryInformation() Creates a new document summary information.- Returns:
- the new document summary information.
 
 
- 
 
-