Package org.fcrepo.server.errors

Examples of org.fcrepo.server.errors.UnsupportedTranslationException


            StreamIOException, UnsupportedTranslationException, ServerException {
        try {
            logger.debug("Grabbing deserializer for: " + format);
            DODeserializer des = m_deserializers.get(format);
            if (des == null) {
                throw new UnsupportedTranslationException("No deserializer exists for format: "
                        + format);
            }
            DODeserializer newDes = des.getInstance();
            newDes.deserialize(in, obj, encoding, transContext);
        } catch (UnsupportedEncodingException uee) {
            throw new UnsupportedTranslationException("Deserializer for format: "
                    + format + " does not support encoding: " + encoding);
        }
    }
View Full Code Here


            StreamIOException, UnsupportedTranslationException, ServerException {
        try {
            logger.debug("Grabbing serializer for: " + format);
            DOSerializer ser = m_serializers.get(format);
            if (ser == null) {
                throw new UnsupportedTranslationException("No serializer exists for format: "
                        + format);
            }
            DOSerializer newSer = ser.getInstance();
            newSer.serialize(obj, out, encoding, transContext);
        } catch (UnsupportedEncodingException uee) {
            throw new UnsupportedTranslationException("Serializer for format: "
                    + format + " does not support encoding: " + encoding);
        }
    }
View Full Code Here

        } else if (exportContext.equalsIgnoreCase("migrate")) {
            transContext = DOTranslationUtility.SERIALIZE_EXPORT_MIGRATE;
        } else if (exportContext.equalsIgnoreCase("archive")) {
            transContext = DOTranslationUtility.SERIALIZE_EXPORT_ARCHIVE;
        } else {
            throw new UnsupportedTranslationException("Export context "
                                                      + exportContext + " is not valid.");
        }
        // now serialize for export in the proper XML format...
        if (format == null || format.equals("")
            || format.equalsIgnoreCase("default")) {
View Full Code Here

TOP

Related Classes of org.fcrepo.server.errors.UnsupportedTranslationException

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.