public final class XMPSerializer
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
writeXML(Metadata meta,
javax.xml.transform.Result res)
Writes the in-memory representation of the XMP metadata to a JAXP Result.
|
static void |
writeXMPPacket(Metadata meta,
java.io.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, javax.xml.transform.Result res) throws javax.xml.transform.TransformerConfigurationException, org.xml.sax.SAXException
meta - the metadatares - the JAXP Result to write tojavax.xml.transform.TransformerConfigurationException - if an error occurs setting up the XML
infrastructure.org.xml.sax.SAXException - if a SAX-related problem occurs while writing the XMLpublic static void writeXMPPacket(Metadata meta, java.io.OutputStream out, boolean readOnlyXMP) throws javax.xml.transform.TransformerConfigurationException, org.xml.sax.SAXException
meta - the metadataout - the stream to write toreadOnlyXMP - true if the generated XMP packet should be read-onlyjavax.xml.transform.TransformerConfigurationException - if an error occurs setting up the XML
infrastructure.org.xml.sax.SAXException - if a SAX-related problem occurs while writing the XMLCopyright 1999-2025 The Apache Software Foundation. All Rights Reserved.