|
xmlgraphics-commons 2.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.xmlgraphics.xmp.XMPSerializer
public final class XMPSerializer
Serializes an XMP tree to XML or to an XMP packet.
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void writeXML(Metadata meta,
Result res)
throws TransformerConfigurationException,
SAXException
meta - the metadatares - the JAXP Result to write to
TransformerConfigurationException - if an error occurs setting up the XML
infrastructure.
SAXException - if a SAX-related problem occurs while writing the XML
public 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-only
TransformerConfigurationException - if an error occurs setting up the XML
infrastructure.
SAXException - if a SAX-related problem occurs while writing the XML
|
xmlgraphics-commons 2.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||