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.MappedNamespaceConventionprivate 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 StaxWriter
addAttribute, close, flush, getQNameMap, getXMLStreamWriter, isNamespaceRepairingMode, setValueMethods inherited from class AbstractXmlWriter
escapeXmlNameMethods inherited from class 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:
startNodein interfaceExtendedHierarchicalStreamWriter- Overrides:
startNodein classAbstractWriter
-
startNode
- Specified by:
startNodein interfaceHierarchicalStreamWriter- Overrides:
startNodein classStaxWriter
-
endNode
public void endNode()- Specified by:
endNodein interfaceHierarchicalStreamWriter- Overrides:
endNodein classStaxWriter
-
JettisonStaxWriter(QNameMap, XMLStreamWriter, boolean, boolean, NameCoder, MappedNamespaceConvention)instead