Class WstxInputLocation

  • All Implemented Interfaces:
    java.io.Serializable, javax.xml.stream.Location, org.codehaus.stax2.XMLStreamLocation2

    public class WstxInputLocation
    extends java.lang.Object
    implements java.io.Serializable, org.codehaus.stax2.XMLStreamLocation2
    Basic implementation of Location, used by Wstx readers.
    See Also:
    Serialized Form
    • Field Detail

      • mContext

        protected final WstxInputLocation mContext
        Enclosing (parent) input location; location from which current location is derived.
      • mPublicId

        protected final java.lang.String mPublicId
      • mSystemId

        protected final java.lang.String mSystemId
      • mCharOffset

        protected final long mCharOffset
      • mCol

        protected final int mCol
      • mRow

        protected final int mRow
      • mDesc

        protected transient java.lang.String mDesc
    • Constructor Detail

      • WstxInputLocation

        public WstxInputLocation​(WstxInputLocation ctxt,
                                 java.lang.String pubId,
                                 java.lang.String sysId,
                                 long charOffset,
                                 int row,
                                 int col)
        Parameters:
        ctxt - Enclosing input location, if any
      • WstxInputLocation

        public WstxInputLocation​(WstxInputLocation ctxt,
                                 java.lang.String pubId,
                                 SystemId sysId,
                                 long charOffset,
                                 int row,
                                 int col)
    • Method Detail

      • getCharacterOffsetLong

        public long getCharacterOffsetLong()
      • getCharacterOffset

        public int getCharacterOffset()
        Specified by:
        getCharacterOffset in interface javax.xml.stream.Location
      • getColumnNumber

        public int getColumnNumber()
        Specified by:
        getColumnNumber in interface javax.xml.stream.Location
      • getLineNumber

        public int getLineNumber()
        Specified by:
        getLineNumber in interface javax.xml.stream.Location
      • getPublicId

        public java.lang.String getPublicId()
        Specified by:
        getPublicId in interface javax.xml.stream.Location
      • getSystemId

        public java.lang.String getSystemId()
        Specified by:
        getSystemId in interface javax.xml.stream.Location
      • getContext

        public org.codehaus.stax2.XMLStreamLocation2 getContext()
        Specified by:
        getContext in interface org.codehaus.stax2.XMLStreamLocation2
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • appendDesc

        private void appendDesc​(java.lang.StringBuilder sb)