|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.poi.hpsf.PropertySetFactory
public class PropertySetFactory
Factory class to create instances of SummaryInformation
,
DocumentSummaryInformation
and PropertySet
.
Constructor Summary | |
---|---|
PropertySetFactory()
|
Method Summary | |
---|---|
static PropertySet |
create(DirectoryEntry dir,
java.lang.String name)
Creates the most specific PropertySet from an entry
in the specified POIFS Directory. |
static PropertySet |
create(java.io.InputStream stream)
Creates the most specific PropertySet from an InputStream . |
static DocumentSummaryInformation |
newDocumentSummaryInformation()
Creates a new document summary information. |
static SummaryInformation |
newSummaryInformation()
Creates a new summary information. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PropertySetFactory()
Method Detail |
---|
public static PropertySet create(DirectoryEntry dir, java.lang.String name) throws java.io.FileNotFoundException, NoPropertySetStreamException, java.io.IOException, java.io.UnsupportedEncodingException
PropertySet
from an entry
in the specified POIFS Directory. This is preferrably a DocumentSummaryInformation
or a SummaryInformation
. 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.
dir
- The directory to find the PropertySet inname
- The name of the entry containing the PropertySet
PropertySet
.
java.io.FileNotFoundException
- if there is no entry with that name
NoPropertySetStreamException
- if the stream does not
contain a property set.
java.io.IOException
- if some I/O problem occurs.
java.io.UnsupportedEncodingException
- if the specified codepage is not
supported.public static PropertySet create(java.io.InputStream stream) throws NoPropertySetStreamException, MarkUnsupportedException, java.io.UnsupportedEncodingException, java.io.IOException
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.
stream
- Contains the property set stream's data.
PropertySet
.
NoPropertySetStreamException
- if the stream does not
contain a property set.
MarkUnsupportedException
- if the stream does not support
the mark
operation.
java.io.IOException
- if some I/O problem occurs.
java.io.UnsupportedEncodingException
- if the specified codepage is not
supported.public static SummaryInformation newSummaryInformation()
public static DocumentSummaryInformation newDocumentSummaryInformation()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |