public final class XMPSerializer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
DEFAULT_ENCODING |
Modifier | Constructor and Description |
---|---|
private |
XMPSerializer() |
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.
|
private static void |
writeXML(Metadata meta,
javax.xml.transform.Result res,
boolean asXMPPacket,
boolean readOnlyXMP) |
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.
|
private static final java.lang.String DEFAULT_ENCODING
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 XMLprivate static void writeXML(Metadata meta, javax.xml.transform.Result res, boolean asXMPPacket, boolean readOnlyXMP) throws javax.xml.transform.TransformerConfigurationException, org.xml.sax.SAXException
javax.xml.transform.TransformerConfigurationException
org.xml.sax.SAXException