Package org.fcrepo.server.storage.translation

Examples of org.fcrepo.server.storage.translation.FOXML1_1DOSerializer


        String charEncoding = "UTF-8";
        int transContext = DOTranslationUtility.SERIALIZE_STORAGE_INTERNAL;

        ByteArrayOutputStream out = new ByteArrayOutputStream();
        FOXML1_1DOSerializer ser = new FOXML1_1DOSerializer();
        ser.serialize(obj, out, charEncoding, transContext);

        FOXML1_1DODeserializer deser = new FOXML1_1DODeserializer();
        ByteArrayInputStream in = new ByteArrayInputStream(out.toByteArray());
        DigitalObject objCopy = new BasicDigitalObject();
        deser.deserialize(in, objCopy, charEncoding, transContext);
View Full Code Here


public class TestFOXML1_1DOSerializer
        extends TestFOXMLDOSerializer {

    public TestFOXML1_1DOSerializer() {
        // superclass sets protected field m_serializer as given below
        super(new FOXML1_1DOSerializer());
    }
View Full Code Here

        // FIXME dsSize tests omitted for now b/c of handling of closing tags
        //assertEquals(ds1.DSSize, candidateDS.DSSize);

        // also make sure we can serialize the object as foxml
        DOSerializer serF = new FOXML1_1DOSerializer();
        serF.serialize(candidate,
                       out,
                       "utf-8",
                       DOTranslationUtility.SERIALIZE_EXPORT_ARCHIVE);
    }
View Full Code Here

TOP

Related Classes of org.fcrepo.server.storage.translation.FOXML1_1DOSerializer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.