org.apache.poi.hpsf
Class PropertySetFactory

java.lang.Object
  |
  +--org.apache.poi.hpsf.PropertySetFactory

public class PropertySetFactory
extends java.lang.Object

Factory class to create instances of SummaryInformation, DocumentSummaryInformation and PropertySet.

Since:
2002-02-09
Version:
$Id: PropertySetFactory.java,v 1.4 2002/05/11 14:47:23 acoliver Exp $
Author:
Rainer Klute (klute@rainer-klute.de)

Constructor Summary
PropertySetFactory()
           
 
Method Summary
static PropertySet create(java.io.InputStream stream)
           Creates the most specific PropertySet from an InputStream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertySetFactory

public PropertySetFactory()
Method Detail

create

public static PropertySet create(java.io.InputStream stream)
                          throws NoPropertySetStreamException,
                                 MarkUnsupportedException,
                                 UnexpectedPropertySetTypeException,
                                 java.io.IOException

Creates the most specific PropertySet from an InputStream. This is preferrably a DocumentSummaryInformation or a SummaryInformation. If the specified InputStream does not contain a property set stream, an exception is thrown and the InputStream is repositioned at its beginning.

Parameters:
stream - Contains the property set stream's data.
Returns:
Description of the Return Value
Throws:
NoPropertySetStreamException - Description of the Exception
MarkUnsupportedException - Description of the Exception
UnexpectedPropertySetTypeException - Description of the Exception
java.io.IOException - Description of the Exception

jakarta-poi 1.8.0-dev

Copyright © 2002 Apache jakarta-poi project. All Rights Reserved.