com.thoughtworks.xstream.io.json
Class JettisonStaxWriter

java.lang.Object
  extended by com.thoughtworks.xstream.io.AbstractWriter
      extended by com.thoughtworks.xstream.io.xml.AbstractXmlWriter
          extended by com.thoughtworks.xstream.io.xml.StaxWriter
              extended by com.thoughtworks.xstream.io.json.JettisonStaxWriter
All Implemented Interfaces:
ExtendedHierarchicalStreamWriter, HierarchicalStreamWriter, XmlFriendlyWriter

public class JettisonStaxWriter
extends StaxWriter

A specialized StaxWriter that makes usage of internal functionality of Jettison.

Since:
1.3.1
Author:
Jörg Schaible

Constructor Summary
JettisonStaxWriter(QNameMap qnameMap, XMLStreamWriter out, boolean writeEnclosingDocument, boolean namespaceRepairingMode, org.codehaus.jettison.mapped.MappedNamespaceConvention convention)
           
JettisonStaxWriter(QNameMap qnameMap, XMLStreamWriter out, boolean writeEnclosingDocument, boolean namespaceRepairingMode, NameCoder nameCoder, org.codehaus.jettison.mapped.MappedNamespaceConvention convention)
           
JettisonStaxWriter(QNameMap qnameMap, XMLStreamWriter out, boolean writeEnclosingDocument, boolean namespaceRepairingMode, XmlFriendlyReplacer replacer, org.codehaus.jettison.mapped.MappedNamespaceConvention convention)
          Deprecated. As of 1.4 use JettisonStaxWriter(QNameMap, XMLStreamWriter, boolean, boolean, NameCoder, MappedNamespaceConvention) instead
JettisonStaxWriter(QNameMap qnameMap, XMLStreamWriter out, org.codehaus.jettison.mapped.MappedNamespaceConvention convention)
           
JettisonStaxWriter(QNameMap qnameMap, XMLStreamWriter out, NameCoder nameCoder, org.codehaus.jettison.mapped.MappedNamespaceConvention convention)
           
 
Method Summary
 void startNode(String name, Class clazz)
          
 
Methods inherited from class com.thoughtworks.xstream.io.xml.StaxWriter
addAttribute, close, endNode, flush, getQNameMap, getXMLStreamWriter, isNamespaceRepairingMode, setValue, startNode
 
Methods inherited from class com.thoughtworks.xstream.io.xml.AbstractXmlWriter
escapeXmlName
 
Methods inherited from class com.thoughtworks.xstream.io.AbstractWriter
encodeAttribute, encodeNode, underlyingWriter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JettisonStaxWriter

public JettisonStaxWriter(QNameMap qnameMap,
                          XMLStreamWriter out,
                          boolean writeEnclosingDocument,
                          boolean namespaceRepairingMode,
                          NameCoder nameCoder,
                          org.codehaus.jettison.mapped.MappedNamespaceConvention convention)
                   throws XMLStreamException
Throws:
XMLStreamException
Since:
1.4

JettisonStaxWriter

public JettisonStaxWriter(QNameMap qnameMap,
                          XMLStreamWriter out,
                          boolean writeEnclosingDocument,
                          boolean namespaceRepairingMode,
                          XmlFriendlyReplacer replacer,
                          org.codehaus.jettison.mapped.MappedNamespaceConvention convention)
                   throws XMLStreamException
Deprecated. As of 1.4 use JettisonStaxWriter(QNameMap, XMLStreamWriter, boolean, boolean, NameCoder, MappedNamespaceConvention) instead

Throws:
XMLStreamException

JettisonStaxWriter

public JettisonStaxWriter(QNameMap qnameMap,
                          XMLStreamWriter out,
                          boolean writeEnclosingDocument,
                          boolean namespaceRepairingMode,
                          org.codehaus.jettison.mapped.MappedNamespaceConvention convention)
                   throws XMLStreamException
Throws:
XMLStreamException

JettisonStaxWriter

public JettisonStaxWriter(QNameMap qnameMap,
                          XMLStreamWriter out,
                          org.codehaus.jettison.mapped.MappedNamespaceConvention convention)
                   throws XMLStreamException
Throws:
XMLStreamException

JettisonStaxWriter

public JettisonStaxWriter(QNameMap qnameMap,
                          XMLStreamWriter out,
                          NameCoder nameCoder,
                          org.codehaus.jettison.mapped.MappedNamespaceConvention convention)
                   throws XMLStreamException
Throws:
XMLStreamException
Since:
1.4
Method Detail

startNode

public void startNode(String name,
                      Class clazz)
Description copied from class: AbstractWriter

Specified by:
startNode in interface ExtendedHierarchicalStreamWriter
Overrides:
startNode in class AbstractWriter


Copyright © 2004-2014 XStream. All Rights Reserved.