Package com.thoughtworks.xstream.io.xml

Source Code of com.thoughtworks.xstream.io.xml.Xpp3DomDriver

/*
* Copyright (C) 2009, 2011, 2014 XStream Committers.
* All rights reserved.
*
* The software in this package is published under the terms of the BSD
* style license a copy of which has been included with this distribution in
* the LICENSE.txt file.
*
* Created on 03. May 2009 by Joerg Schaible
*/
package com.thoughtworks.xstream.io.xml;

import org.xmlpull.mxp1.MXParser;
import org.xmlpull.v1.XmlPullParser;

import com.thoughtworks.xstream.io.HierarchicalStreamDriver;
import com.thoughtworks.xstream.io.naming.NameCoder;


/**
* A {@link HierarchicalStreamDriver} for XPP DOM using the Xpp3 parser.
*
* @author Jörg Schaible
* @since 1.4
*/
public class Xpp3DomDriver extends AbstractXppDomDriver {

    /**
     * Construct an Xpp3DomDriver.
     *
     * @since 1.4
     */
    public Xpp3DomDriver() {
        super(new XmlFriendlyNameCoder());
    }

    /**
     * Construct an Xpp3DomDriver.
     *
     * @param nameCoder the replacer for XML friendly names
     * @since 1.4
     */
    public Xpp3DomDriver(final NameCoder nameCoder) {
        super(nameCoder);
    }

    @Override
    protected XmlPullParser createParser() {
        return new MXParser();
    }
}
TOP

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

TOP
Copyright © 2018 www.massapi.com. 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.