public final class XMPSerializer extends Object
Modifier and Type | Method and Description |
---|---|
static void |
writeXML(Metadata meta,
Result res)
Writes the in-memory representation of the XMP metadata to a JAXP Result.
|
static void |
writeXMPPacket(Metadata meta,
OutputStream out,
boolean readOnlyXMP)
Writes the in-memory representation of the XMP metadata to an OutputStream as an XMP packet.
|
public static void writeXML(Metadata meta, Result res) throws TransformerConfigurationException, SAXException
meta
- the metadatares
- the JAXP Result to write toTransformerConfigurationException
- if an error occurs setting up the XML
infrastructure.SAXException
- if a SAX-related problem occurs while writing the XMLpublic static void writeXMPPacket(Metadata meta, OutputStream out, boolean readOnlyXMP) throws TransformerConfigurationException, SAXException
meta
- the metadataout
- the stream to write toreadOnlyXMP
- true if the generated XMP packet should be read-onlyTransformerConfigurationException
- if an error occurs setting up the XML
infrastructure.SAXException
- if a SAX-related problem occurs while writing the XMLCopyright © 2017 Apache Software Foundation. All rights reserved.