Class XMLLocatorImpl

java.lang.Object
org.htmlunit.cyberneko.xerces.util.XMLLocatorImpl
All Implemented Interfaces:
XMLLocator, Locator2, Locator

public class XMLLocatorImpl extends Object implements XMLLocator
The XMLLocatorImpl class is an implementation of the XMLLocator interface.
Author:
Ronald Brill
  • Constructor Details

    • XMLLocatorImpl

      public XMLLocatorImpl(String publicId, String systemId, int lineNumber, int columnNumber)
  • Method Details

    • getXMLVersion

      public String getXMLVersion()
      Specified by:
      getXMLVersion in interface Locator2
    • getEncoding

      public String getEncoding()
      Specified by:
      getEncoding in interface Locator2
    • getPublicId

      public String getPublicId()
      Specified by:
      getPublicId in interface Locator
    • getSystemId

      public String getSystemId()
      Specified by:
      getSystemId in interface Locator
    • getLineNumber

      public int getLineNumber()
      Specified by:
      getLineNumber in interface Locator
    • getColumnNumber

      public int getColumnNumber()
      Specified by:
      getColumnNumber in interface Locator
    • getLiteralSystemId

      public String getLiteralSystemId()
      Description copied from interface: XMLLocator
      Returns the literal system identifier.
      Specified by:
      getLiteralSystemId in interface XMLLocator
      Returns:
      the literal system identifier, or null if none is available
    • getBaseSystemId

      public String getBaseSystemId()
      Description copied from interface: XMLLocator
      Returns the base system identifier.
      Specified by:
      getBaseSystemId in interface XMLLocator
      Returns:
      the base system identifier, or null if none is available
    • getCharacterOffset

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