Class CustomStaxWriter

  • All Implemented Interfaces:
    com.thoughtworks.xstream.io.ExtendedHierarchicalStreamWriter, com.thoughtworks.xstream.io.HierarchicalStreamWriter, com.thoughtworks.xstream.io.xml.XmlFriendlyWriter, AutoCloseable

    public class CustomStaxWriter
    extends com.thoughtworks.xstream.io.xml.StaxWriter
    implements AutoCloseable
    • Constructor Detail

      • CustomStaxWriter

        public CustomStaxWriter​(com.thoughtworks.xstream.io.xml.QNameMap qnameMap,
                                XMLStreamWriter out,
                                boolean writeStartEndDocument,
                                boolean repairingNamespace,
                                com.thoughtworks.xstream.io.naming.NameCoder nameCoder)
                         throws XMLStreamException
        Throws:
        XMLStreamException
    • Method Detail

      • endNode

        public void endNode()
        Specified by:
        endNode in interface com.thoughtworks.xstream.io.HierarchicalStreamWriter
        Overrides:
        endNode in class com.thoughtworks.xstream.io.xml.StaxWriter
      • startNode

        public void startNode​(String arg0)
        Specified by:
        startNode in interface com.thoughtworks.xstream.io.HierarchicalStreamWriter
        Overrides:
        startNode in class com.thoughtworks.xstream.io.xml.StaxWriter
      • setValue

        public void setValue​(String text)
        Specified by:
        setValue in interface com.thoughtworks.xstream.io.HierarchicalStreamWriter
        Overrides:
        setValue in class com.thoughtworks.xstream.io.xml.StaxWriter
      • getQNameMap

        public com.thoughtworks.xstream.io.xml.QNameMap getQNameMap()
        Overrides:
        getQNameMap in class com.thoughtworks.xstream.io.xml.StaxWriter