public class PropertySetFactory extends Object
Factory class to create instances of SummaryInformation
,
DocumentSummaryInformation
and PropertySet
.
Constructor and Description |
---|
PropertySetFactory() |
Modifier and Type | Method and Description |
---|---|
static PropertySet |
create(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.
|
public static PropertySet create(InputStream stream) throws NoPropertySetStreamException, MarkUnsupportedException, UnsupportedEncodingException, 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.
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.IOException
- if some I/O problem occurs.UnsupportedEncodingException
- if the specified codepage is not
supported.public static SummaryInformation newSummaryInformation()
Creates a new summary information.
public static DocumentSummaryInformation newDocumentSummaryInformation()
Creates a new document summary information.
Copyright © 2014 Open Microscopy Environment