Package loci.poi.hpsf
Class PropertySetFactory
- java.lang.Object
-
- loci.poi.hpsf.PropertySetFactory
-
public class PropertySetFactory extends java.lang.ObjectFactory class to create instances of
SummaryInformation,DocumentSummaryInformationandPropertySet.- Since:
- 2002-02-09
- Version:
- $Id: PropertySetFactory.java 489730 2006-12-22 19:18:16Z bayard $
- Author:
- Rainer Klute <klute@rainer-klute.de>
-
-
Constructor Summary
Constructors Constructor Description PropertySetFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PropertySetcreate(java.io.InputStream stream)Creates the most specificPropertySetfrom anInputStream.static DocumentSummaryInformationnewDocumentSummaryInformation()Creates a new document summary information.static SummaryInformationnewSummaryInformation()Creates a new summary information.
-
-
-
Method Detail
-
create
public static PropertySet create(java.io.InputStream stream) throws NoPropertySetStreamException, MarkUnsupportedException, java.io.UnsupportedEncodingException, java.io.IOException
Creates the most specific
PropertySetfrom 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.MarkUnsupportedException- if the stream does not support themarkoperation.java.io.IOException- if some I/O problem occurs.java.io.UnsupportedEncodingException- if the specified codepage is not supported.
-
newSummaryInformation
public static SummaryInformation newSummaryInformation()
Creates a new summary information.
- Returns:
- the new summary information.
-
newDocumentSummaryInformation
public static DocumentSummaryInformation newDocumentSummaryInformation()
Creates a new document summary information.
- Returns:
- the new document summary information.
-
-