Class JettisonMappedXmlDriver

java.lang.Object
com.thoughtworks.xstream.io.AbstractDriver
com.thoughtworks.xstream.io.json.JettisonMappedXmlDriver
All Implemented Interfaces:
HierarchicalStreamDriver

public class JettisonMappedXmlDriver extends AbstractDriver
Simple XStream driver wrapping Jettison's Mapped reader and writer. Serializes object from and to JSON.
  • Field Details

    • mof

      protected final org.codehaus.jettison.mapped.MappedXMLOutputFactory mof
    • mif

      protected final org.codehaus.jettison.mapped.MappedXMLInputFactory mif
    • convention

      protected final org.codehaus.jettison.mapped.MappedNamespaceConvention convention
    • useSerializeAsArray

      protected final boolean useSerializeAsArray
  • Constructor Details

    • JettisonMappedXmlDriver

      public JettisonMappedXmlDriver()
      Construct a JettisonMappedXmlDriver.
    • JettisonMappedXmlDriver

      public JettisonMappedXmlDriver(org.codehaus.jettison.mapped.Configuration config)
      Construct a JettisonMappedXmlDriver with configuration.
      Parameters:
      config - the Jettison configuration
    • JettisonMappedXmlDriver

      public JettisonMappedXmlDriver(org.codehaus.jettison.mapped.Configuration config, boolean useSerializeAsArray)
      Construct a JettisonMappedXmlDriver with configuration. This constructor has been added by special request of Jettison users to support JSON generated by older Jettison versions. if the driver is setup to ignore the XStream hints for JSON arrays, there is neither support from XStream's side nor are there any tests to ensure this mode.
      Parameters:
      config - the Jettison configuration
      useSerializeAsArray - flag to use XStream's hints for collections and arrays
      Since:
      1.4
  • Method Details