Package com.thoughtworks.xstream.io.xml

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


  public XmlMediaType() {
    QNameMap qnameMap = new QNameMap();
    QName qname = new QName("http://www.w3.org/2005/Atom", "atom");
    qnameMap.registerMapping(qname, DefaultRelation.class);
    helper = new XStreamHelper(new StaxDriver(qnameMap));
  }
View Full Code Here


        reader.parse(new InputSource(getMessageReader()));
    }

    public void test_xstream() {
        XStream xstream = new XStream(new StaxDriver());
        //XStream xstream = new XStream(new XppDriver());
        xstream.fromXML(getMessageReader());

        for(int i = 0; i < NUM_WARMUPS; i++) {
            xstream.fromXML(getMessageReader());
View Full Code Here

        reader.parse(new InputSource(getMessageReader()));
    }

    public void test_xstream() {
        XStream xstream = new XStream(new StaxDriver());
        //XStream xstream = new XStream(new XppDriver());
        xstream.fromXML(getMessageReader());

        for(int i = 0; i < NUM_WARMUPS; i++) {
            xstream.fromXML(getMessageReader());
View Full Code Here

* @author <a href="mailto:tom.fennelly@gmail.com">tom.fennelly@gmail.com</a>
*/
public class XStreamPerfTest extends TestCase {

    public void test() {
        XStream xstream = new XStream(new StaxDriver());

        xstream.alias("order", Order.class);
        xstream.alias("orderItem", OrderItem.class);
       
        for(int i = 0; i < TestConstants.NUM_WARMUPS; i++) {
View Full Code Here

    qnameMap.registerMapping(qname, DefaultRelation.class);
    // we need the replacer because
    // xstream replaces an _ with __ (two underscore) more information at
    // http://xstream.codehaus.org/faq.html#XML_double_underscores
    XmlFriendlyReplacer replacer = new XmlFriendlyReplacer("$", "_");
    helper = new XStreamHelper(new StaxDriver(qnameMap, replacer), enhancer);
  }
View Full Code Here

      database = null;
      logger.error("Unable to load ZWave product database!");
      return;
    }

    XStream xstream = new XStream(new StaxDriver());
    xstream.alias("Manufacturers", ZWaveDbRoot.class);
    xstream.alias("Manufacturer", ZWaveDbManufacturer.class);
    xstream.alias("Product", ZWaveDbProduct.class);
    xstream.alias("Reference", ZWaveDbProductReference.class);
View Full Code Here

      database = null;
      logger.error("Unable to load ZWave product file: '{}'", selProduct.ConfigFile);
      return null;
    }

    XStream xstream = new XStream(new StaxDriver());
    xstream.alias("Product", ZWaveDbProductFile.class);
    xstream.alias("Configuration", ZWaveDbProductFile.ZWaveDbConfiguration.class);
    xstream.alias("Parameter", ZWaveDbConfigurationParameter.class);
    xstream.alias("Item", ZWaveDbConfigurationListItem.class);
    xstream.alias("Associations", ZWaveDbProductFile.ZWaveDbAssociation.class);
View Full Code Here

TOP

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

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.