Package com.thoughtworks.xstream.io.xml

Examples of com.thoughtworks.xstream.io.xml.XomReader


    public Object doDeserialize(SerializedObject serializedObject, XStream xStream) {
        if ("org.dom4j.Document".equals(serializedObject.getContentType().getName())) {
            return xStream.unmarshal(new Dom4JReader((org.dom4j.Document) serializedObject.getData()));
        }
        if("nu.xom.Document".equals(serializedObject.getContentType().getName())) {
            return xStream.unmarshal(new XomReader((nu.xom.Document) serializedObject.getData()));
        }
        InputStream serializedData = convert(serializedObject.getContentType(), InputStream.class,
                                                           serializedObject.getData());
        return xStream.fromXML(new InputStreamReader(serializedData, getCharset()));
    }
View Full Code Here

TOP

Related Classes of com.thoughtworks.xstream.io.xml.XomReader

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.