|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.itextpdf.xmp.impl.XMPSerializerHelper
public class XMPSerializerHelper
Serializes the XMPMeta-object to an OutputStream according to the
SerializeOptions.
| Constructor Summary | |
|---|---|
XMPSerializerHelper()
|
|
| Method Summary | |
|---|---|
static void |
serialize(XMPMetaImpl xmp,
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 String |
serializeToString(XMPMetaImpl xmp,
SerializeOptions options)
Serializes an XMPMeta-object as RDF into a string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMPSerializerHelper()
| Method Detail |
|---|
public static void serialize(XMPMetaImpl xmp,
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 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||