Package de.fu_berlin.inf.dpp.util.xstream

Examples of de.fu_berlin.inf.dpp.util.xstream.XppReader


    @SuppressWarnings("unchecked")
    public PacketExtension parseExtension(XmlPullParser parser) {
        try {
            XStreamPacketExtension<T> result = (XStreamPacketExtension<T>) xstream
                .unmarshal(new XppReader(parser));
            result.provider = this;
            return result;
        } catch (RuntimeException e) {
            log.error("Malformed data received!", e);
            return new DropSilentlyPacketExtension();
View Full Code Here


    @SuppressWarnings("unchecked")
    public IQ parseIQ(XmlPullParser parser) throws Exception {
        try {
            XStreamPacketExtension<T> result = (XStreamPacketExtension<T>) xstream
                .unmarshal(new XppReader(parser));
            result.provider = this;
            return new XStreamIQPacket<T>(result);
        } catch (RuntimeException e) {
            log.error("Malformed data received!", e);
            return null;
View Full Code Here

TOP

Related Classes of de.fu_berlin.inf.dpp.util.xstream.XppReader

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.