Package org.stringtree.xml

Examples of org.stringtree.xml.XMLReader


    public Items() {
        // don't load anything
    }

    public Object parse(StringKeeper context, String id, InputStream in) throws IOException {
        XMLReader reader = new XMLReader();
        reader.setIgnoreRoot(true);
        String xml = ReaderUtils.readInputStream(in);

        @SuppressWarnings("unchecked")
        Map<String, String> body = (Map<String, String>) reader.read(xml);
        return new Item(body.get("id"), body.get("name"));
    }
View Full Code Here

TOP

Related Classes of org.stringtree.xml.XMLReader

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.