Package com.thoughtworks.xstream.io.json
Class JettisonStaxWriter
java.lang.Object
com.thoughtworks.xstream.io.AbstractWriter
com.thoughtworks.xstream.io.xml.AbstractXmlWriter
com.thoughtworks.xstream.io.xml.StaxWriter
com.thoughtworks.xstream.io.json.JettisonStaxWriter
- All Implemented Interfaces:
ExtendedHierarchicalStreamWriter
,HierarchicalStreamWriter
,XmlFriendlyWriter
A specialized
StaxWriter
that makes usage of internal functionality of Jettison.- Since:
- 1.3.1
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.codehaus.jettison.mapped.MappedNamespaceConvention
private final List
-
Constructor Summary
ConstructorsConstructorDescriptionJettisonStaxWriter
(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.JettisonStaxWriter
(QNameMap qnameMap, XMLStreamWriter out, boolean writeEnclosingDocument, boolean namespaceRepairingMode, org.codehaus.jettison.mapped.MappedNamespaceConvention convention) JettisonStaxWriter
(QNameMap qnameMap, XMLStreamWriter out, NameCoder nameCoder, org.codehaus.jettison.mapped.MappedNamespaceConvention convention) JettisonStaxWriter
(QNameMap qnameMap, XMLStreamWriter out, org.codehaus.jettison.mapped.MappedNamespaceConvention convention) -
Method Summary
Methods inherited from class com.thoughtworks.xstream.io.xml.StaxWriter
addAttribute, close, flush, getQNameMap, getXMLStreamWriter, isNamespaceRepairingMode, setValue
Methods inherited from class com.thoughtworks.xstream.io.xml.AbstractXmlWriter
escapeXmlName
Methods inherited from class com.thoughtworks.xstream.io.AbstractWriter
encodeAttribute, encodeNode, underlyingWriter
-
Field Details
-
convention
private final org.codehaus.jettison.mapped.MappedNamespaceConvention convention -
stack
-
-
Constructor Details
-
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.- 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 Details
-
startNode
Description copied from class:AbstractWriter
- Specified by:
startNode
in interfaceExtendedHierarchicalStreamWriter
- Overrides:
startNode
in classAbstractWriter
-
startNode
- Specified by:
startNode
in interfaceHierarchicalStreamWriter
- Overrides:
startNode
in classStaxWriter
-
endNode
public void endNode()- Specified by:
endNode
in interfaceHierarchicalStreamWriter
- Overrides:
endNode
in classStaxWriter
-
JettisonStaxWriter(QNameMap, XMLStreamWriter, boolean, boolean, NameCoder, MappedNamespaceConvention)
instead