public class XMPSerializerHelper
extends java.lang.Object
XMPMeta
-object to an OutputStream
according to the
SerializeOptions
.Constructor | Description |
---|---|
XMPSerializerHelper() |
Modifier and Type | Method | Description |
---|---|---|
static void |
serialize(XMPMetaImpl xmp,
java.io.OutputStream out,
SerializeOptions options) |
Static method to serialize the metadata object.
|
static byte[] |
serializeToBuffer(XMPMetaImpl xmp,
SerializeOptions options) |
Serializes an
XMPMeta -object as RDF into a byte buffer. |
static java.lang.String |
serializeToString(XMPMetaImpl xmp,
SerializeOptions options) |
Serializes an
XMPMeta -object as RDF into a string. |
public static void serialize(XMPMetaImpl xmp, java.io.OutputStream out, SerializeOptions options) throws XMPException
xmp
- a metadata implementation objectout
- the output stream to serialize tooptions
- serialization options, can be null
for default.XMPException
public static java.lang.String serializeToString(XMPMetaImpl xmp, SerializeOptions options) throws XMPException
XMPMeta
-object as RDF into a string.
Note: Encoding is forced to UTF-16 when serializing to a
string to ensure the correctness of "exact packet size".xmp
- a metadata implementation objectoptions
- Options to control the serialization (see
SerializeOptions
).XMPException
- on serializsation errors.public static byte[] serializeToBuffer(XMPMetaImpl xmp, SerializeOptions options) throws XMPException
XMPMeta
-object as RDF into a byte buffer.xmp
- a metadata implementation objectoptions
- Options to control the serialization (see SerializeOptions
).XMPException
- on serializsation errors.Copyright © 1998–2018. All rights reserved.