Class XMLLocatorImpl

  • All Implemented Interfaces:
    XMLLocator, org.xml.sax.ext.Locator2, org.xml.sax.Locator

    public class XMLLocatorImpl
    extends java.lang.Object
    implements XMLLocator
    The XMLLocatorImpl class is an implementation of the XMLLocator interface.
    • Field Detail

      • publicId_

        private final java.lang.String publicId_
      • systemId_

        private final java.lang.String systemId_
      • lineNumber_

        private final int lineNumber_
      • columnNumber_

        private final int columnNumber_
    • Constructor Detail

      • XMLLocatorImpl

        public XMLLocatorImpl​(java.lang.String publicId,
                              java.lang.String systemId,
                              int lineNumber,
                              int columnNumber)
    • Method Detail

      • getXMLVersion

        public java.lang.String getXMLVersion()
        Specified by:
        getXMLVersion in interface org.xml.sax.ext.Locator2
      • getEncoding

        public java.lang.String getEncoding()
        Specified by:
        getEncoding in interface org.xml.sax.ext.Locator2
      • getPublicId

        public java.lang.String getPublicId()
        Specified by:
        getPublicId in interface org.xml.sax.Locator
      • getSystemId

        public java.lang.String getSystemId()
        Specified by:
        getSystemId in interface org.xml.sax.Locator
      • getLineNumber

        public int getLineNumber()
        Specified by:
        getLineNumber in interface org.xml.sax.Locator
      • getColumnNumber

        public int getColumnNumber()
        Specified by:
        getColumnNumber in interface org.xml.sax.Locator
      • getLiteralSystemId

        public java.lang.String getLiteralSystemId()
        Specified by:
        getLiteralSystemId in interface XMLLocator
        Returns:
        the literal system identifier.
      • getBaseSystemId

        public java.lang.String getBaseSystemId()
        Specified by:
        getBaseSystemId in interface XMLLocator
        Returns:
        the base system identifier.
      • getCharacterOffset

        public int getCharacterOffset()
        Specified by:
        getCharacterOffset in interface XMLLocator
        Returns:
        the character offset, or -1 if no character offset is available.