RDFXMLSerializer.java 1.19 KB
/*
 * Decompiled with CFR 0_118.
 */
package com.adobe.xmp.core.serializer;

import com.adobe.xmp.core.XMPException;
import com.adobe.xmp.core.XMPMetadata;
import com.adobe.xmp.core.serializer.XMPSerializer;
import com.adobe.xmp.core.serializer.impl.SerializerImpl;
import java.io.IOException;
import java.io.OutputStream;
import java.util.Map;

/*
 * This class specifies class file version 49.0 but uses Java 6 signatures.  Assumed Java 6.
 */
public class RDFXMLSerializer
implements XMPSerializer {
    private SerializerImpl delegate = new SerializerImpl();

    @Override
    public void serialize(XMPMetadata xmp, OutputStream out, Map<String, Object> serializeContext) throws IOException, XMPException {
        this.delegate.serialize(xmp, out, serializeContext);
    }

    @Override
    public String serializeToString(XMPMetadata xmp, Map<String, Object> serializeContext) throws IOException, XMPException {
        return this.delegate.serializeToString(xmp, serializeContext);
    }

    @Override
    public byte[] serializeToBuffer(XMPMetadata xmp, Map<String, Object> serializeContext) throws IOException, XMPException {
        return this.delegate.serializeToBuffer(xmp, serializeContext);
    }
}