public class RDFXMLSerializer extends java.lang.Object implements XMPSerializer
| Constructor and Description |
|---|
RDFXMLSerializer() |
| Modifier and Type | Method and Description |
|---|---|
void |
serialize(XMPMetadata xmp,
java.io.OutputStream out,
java.util.Map<java.lang.String,java.lang.Object> serializeContext)
Serialize XMP data as RDF/XML to an OutputStream
|
byte[] |
serializeToBuffer(XMPMetadata xmp,
java.util.Map<java.lang.String,java.lang.Object> serializeContext)
Serialize XMP data as RDF/XML UTF-8 encoded into a byte buffer
|
java.lang.String |
serializeToString(XMPMetadata xmp,
java.util.Map<java.lang.String,java.lang.Object> serializeContext)
Serialize XMP data as RDF/XML into a String
|
public void serialize(XMPMetadata xmp, java.io.OutputStream out, java.util.Map<java.lang.String,java.lang.Object> serializeContext) throws java.io.IOException, XMPException
XMPSerializerserialize in interface XMPSerializerxmp - the XMP object to serializeout - the stream to write to. Client has to open/close the stream.serializeContext - an optional serialization context that
can contains additional information to configure the serialization.java.io.IOException - If an error occurred writing to the streamXMPException - This exception is thrown if the data model contains portions that can't be serialized
by a specific serializer or if the options are inconsistent.XMPSerializer.serialize(XMPMetadata, OutputStream, Map)public java.lang.String serializeToString(XMPMetadata xmp, java.util.Map<java.lang.String,java.lang.Object> serializeContext) throws java.io.IOException, XMPException
XMPSerializerserializeToString in interface XMPSerializerxmp - the XMP object to serializeserializeContext - an optional serialization context that
can contains additional information to configure the serialization.java.io.IOException - If an error occurred writing to the internal stream or out of memoryXMPException - This exception is thrown if the data model contains portions that can't be serialized
by a specific serializer or if the options are inconsistent.XMPSerializer.serializeToString(XMPMetadata, Map)public byte[] serializeToBuffer(XMPMetadata xmp, java.util.Map<java.lang.String,java.lang.Object> serializeContext) throws java.io.IOException, XMPException
XMPSerializerserializeToBuffer in interface XMPSerializerxmp - the XMP object to serializeserializeContext - an optional serialization context that
can contains additional information to configure the serialization.java.io.IOException - If an error occurred writing to the streamXMPException - This exception is thrown if the data model contains portions that can't be serialized
by a specific serializer or if the options are inconsistent.XMPSerializer.serializeToBuffer(XMPMetadata, Map)Copyright © 2010 - 2023 Adobe. All Rights Reserved