C# Class iTextSharp.xmp.impl.XmpSerializerHelper

Serializes the XMPMeta-object to an OutputStream according to the SerializeOptions. @since 11.07.2006
Mostra file Open project: nonorganic/dssnet

Public Methods

Method Description
Serialize ( XmpMetaImpl xmp, Stream @out, SerializeOptions options ) : void

Static method to Serialize the metadata object. For each serialisation, a new XMPSerializer instance is created, either XMPSerializerRDF or XMPSerializerPlain so thats its possible to serialialize the same XMPMeta objects in two threads.

SerializeToBuffer ( XmpMetaImpl xmp, SerializeOptions options ) : byte[]

Serializes an XMPMeta-object as RDF into a byte buffer.

SerializeToString ( XmpMetaImpl xmp, SerializeOptions options ) : string

Serializes an 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".

Private Methods

Method Description
GetString ( byte bytes ) : string

Method Details

Serialize() public static method

Static method to Serialize the metadata object. For each serialisation, a new XMPSerializer instance is created, either XMPSerializerRDF or XMPSerializerPlain so thats its possible to serialialize the same XMPMeta objects in two threads.
public static Serialize ( XmpMetaImpl xmp, Stream @out, SerializeOptions options ) : void
xmp XmpMetaImpl a metadata implementation object
@out Stream
options iTextSharp.xmp.options.SerializeOptions serialization options, can be null for default.
return void

SerializeToBuffer() public static method

Serializes an XMPMeta-object as RDF into a byte buffer.
on serializsation errors.
public static SerializeToBuffer ( XmpMetaImpl xmp, SerializeOptions options ) : byte[]
xmp XmpMetaImpl a metadata implementation object
options iTextSharp.xmp.options.SerializeOptions Options to control the serialization (see ).
return byte[]

SerializeToString() public static method

Serializes an 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".
on serializsation errors.
public static SerializeToString ( XmpMetaImpl xmp, SerializeOptions options ) : string
xmp XmpMetaImpl a metadata implementation object
options iTextSharp.xmp.options.SerializeOptions Options to control the serialization (see /// ).
return string