public final class PackagePropertiesUnmarshaller extends Object implements PartUnmarshaller
| Constructor and Description |
|---|
PackagePropertiesUnmarshaller() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkElementForOPCCompliance(Element el)
Check the element for the following OPC compliance rules:
|
PackagePart |
unmarshall(UnmarshallContext context,
InputStream in)
Save the content of the package in the stream
|
public PackagePart unmarshall(UnmarshallContext context, InputStream in) throws InvalidFormatException, IOException
PartUnmarshallerunmarshall in interface PartUnmarshallerin - The input stream from which the part will be unmarshall.InvalidFormatExceptionIOExceptionpublic void checkElementForOPCCompliance(Element el) throws InvalidFormatException
Rule M4.2: A format consumer shall consider the use of the Markup Compatibility namespace to be an error.
Rule M4.3: Producers shall not create a document element that contains
refinements to the Dublin Core elements, except for the two specified in
the schema:
Rule M4.4: Producers shall not create a document element that contains the xml:lang attribute. Consumers shall consider a document element that violates this constraint to be an error.
Rule M4.5: Producers shall not create a document element that contains
the xsi:type attribute, except for a
InvalidFormatExceptionCopyright © 2010 - 2020 Adobe. All Rights Reserved