/// <summary> /// Serializes an <code>XMPMeta</code>-object as RDF into an <code>OutputStream</code>. /// </summary> /// <param name="xmp"> a metadata object </param> /// <param name="options"> Options to control the serialization (see <seealso cref="SerializeOptions"/>). </param> /// <param name="out"> an <code>OutputStream</code> to write the serialized RDF to. </param> /// <exception cref="XmpException"> on serializsation errors. </exception> public static void Serialize(IXmpMeta xmp, Stream @out, SerializeOptions options) { AssertImplementation(xmp); XmpSerializerHelper.Serialize((XmpMetaImpl)xmp, @out, options); }
/// <summary>Serializes an <c>XMPMeta</c>-object as RDF into an <c>OutputStream</c>.</summary> /// <param name="xmp">a metadata object</param> /// <param name="options">Options to control the serialization (see <see cref="SerializeOptions"/>).</param> /// <param name="stream">an <c>OutputStream</c> to write the serialized RDF to.</param> /// <exception cref="XmpException">on serialization errors.</exception> public static void Serialize(IXmpMeta xmp, Stream stream, SerializeOptions options = null) { AssertImplementation(xmp); XmpSerializerHelper.Serialize((XmpMeta)xmp, stream, options); }