Class CustomStaxWriter

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

    public class CustomStaxWriter
    extends com.thoughtworks.xstream.io.xml.StaxWriter
    implements java.lang.AutoCloseable
    • Constructor Summary

      Constructors 
      Constructor Description
      CustomStaxWriter​(com.thoughtworks.xstream.io.xml.QNameMap qnameMap, javax.xml.stream.XMLStreamWriter out, boolean writeStartEndDocument, boolean repairingNamespace, com.thoughtworks.xstream.io.naming.NameCoder nameCoder)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void endNode()  
      com.thoughtworks.xstream.io.xml.QNameMap getQNameMap()  
      void setDefaultNamespace​(java.lang.String uri)  
      void setValue​(java.lang.String text)  
      void startNode​(java.lang.String arg0)  
      void writeNamespace​(java.lang.String prefix, java.lang.String uri)  
      • Methods inherited from class com.thoughtworks.xstream.io.xml.StaxWriter

        addAttribute, close, flush, getXMLStreamWriter, isNamespaceRepairingMode
      • Methods inherited from class com.thoughtworks.xstream.io.xml.AbstractXmlWriter

        escapeXmlName
      • Methods inherited from class com.thoughtworks.xstream.io.AbstractWriter

        encodeAttribute, encodeNode, startNode, underlyingWriter
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.AutoCloseable

        close
    • Constructor Detail

      • CustomStaxWriter

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

      • writeNamespace

        public void writeNamespace​(java.lang.String prefix,
                                   java.lang.String uri)
                            throws javax.xml.stream.XMLStreamException
        Throws:
        javax.xml.stream.XMLStreamException
      • setDefaultNamespace

        public void setDefaultNamespace​(java.lang.String uri)
                                 throws javax.xml.stream.XMLStreamException
        Throws:
        javax.xml.stream.XMLStreamException
      • 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​(java.lang.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​(java.lang.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