Class CustomStaxReader

  • All Implemented Interfaces:
    com.thoughtworks.xstream.converters.ErrorReporter, com.thoughtworks.xstream.io.ExtendedHierarchicalStreamReader, com.thoughtworks.xstream.io.HierarchicalStreamReader

    public class CustomStaxReader
    extends com.thoughtworks.xstream.io.xml.StaxReader
    • Field Summary

      • Fields inherited from class com.thoughtworks.xstream.io.xml.AbstractPullReader

        COMMENT, END_NODE, OTHER, START_NODE, TEXT
    • Constructor Summary

      Constructors 
      Constructor Description
      CustomStaxReader​(com.thoughtworks.xstream.io.xml.QNameMap qnameMap, javax.xml.stream.XMLStreamReader in)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<javax.xml.namespace.QName,​java.lang.String> getAdditionalAttributes()  
      java.lang.String getAttribute​(java.lang.String name)  
      java.lang.String getAttribute​(java.lang.String namespaceURI, java.lang.String name)  
      javax.xml.stream.Location getLocation()  
      java.util.Map<java.lang.String,​java.lang.String> getNsContext()  
      void moveDown()  
      protected int pullNextEvent()  
      • Methods inherited from class com.thoughtworks.xstream.io.xml.StaxReader

        appendErrors, close, getAttribute, getAttributeCount, getAttributeName, pullElementName, pullText
      • Methods inherited from class com.thoughtworks.xstream.io.xml.AbstractPullReader

        getAttributeNames, getNodeName, getValue, hasMoreChildren, mark, moveUp, peekNextChild, reset
      • Methods inherited from class com.thoughtworks.xstream.io.xml.AbstractXmlReader

        escapeXmlName, unescapeXmlName
      • Methods inherited from class com.thoughtworks.xstream.io.AbstractReader

        decodeAttribute, decodeNode, encodeAttribute, encodeNode, underlyingReader
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CustomStaxReader

        public CustomStaxReader​(com.thoughtworks.xstream.io.xml.QNameMap qnameMap,
                                javax.xml.stream.XMLStreamReader in)
    • Method Detail

      • getNsContext

        public java.util.Map<java.lang.String,​java.lang.String> getNsContext()
      • getLocation

        public javax.xml.stream.Location getLocation()
      • getAttribute

        public java.lang.String getAttribute​(java.lang.String name)
        Specified by:
        getAttribute in interface com.thoughtworks.xstream.io.HierarchicalStreamReader
        Overrides:
        getAttribute in class com.thoughtworks.xstream.io.xml.StaxReader
      • getAttribute

        public java.lang.String getAttribute​(java.lang.String namespaceURI,
                                             java.lang.String name)
      • getAdditionalAttributes

        public java.util.Map<javax.xml.namespace.QName,​java.lang.String> getAdditionalAttributes()
      • moveDown

        public void moveDown()
        Specified by:
        moveDown in interface com.thoughtworks.xstream.io.HierarchicalStreamReader
        Overrides:
        moveDown in class com.thoughtworks.xstream.io.xml.AbstractPullReader
      • pullNextEvent

        protected int pullNextEvent()
        Overrides:
        pullNextEvent in class com.thoughtworks.xstream.io.xml.StaxReader