Class XMLLocatorImpl
java.lang.Object
org.htmlunit.cyberneko.xerces.util.XMLLocatorImpl
- All Implemented Interfaces:
XMLLocator,Locator2,Locator
The XMLLocatorImpl class is an implementation of the XMLLocator
interface.
- Author:
- Ronald Brill
-
Constructor Summary
ConstructorsConstructorDescriptionXMLLocatorImpl(String publicId, String systemId, int lineNumber, int columnNumber) -
Method Summary
Modifier and TypeMethodDescriptionintintint
-
Constructor Details
-
XMLLocatorImpl
-
-
Method Details
-
getXMLVersion
- Specified by:
getXMLVersionin interfaceLocator2
-
getEncoding
- Specified by:
getEncodingin interfaceLocator2
-
getPublicId
- Specified by:
getPublicIdin interfaceLocator
-
getSystemId
- Specified by:
getSystemIdin interfaceLocator
-
getLineNumber
public int getLineNumber()- Specified by:
getLineNumberin interfaceLocator
-
getColumnNumber
public int getColumnNumber()- Specified by:
getColumnNumberin interfaceLocator
-
getLiteralSystemId
- Specified by:
getLiteralSystemIdin interfaceXMLLocator- Returns:
- the literal system identifier.
-
getBaseSystemId
- Specified by:
getBaseSystemIdin interfaceXMLLocator- Returns:
- the base system identifier.
-
getCharacterOffset
public int getCharacterOffset()- Specified by:
getCharacterOffsetin interfaceXMLLocator- Returns:
- the character offset, or
-1if no character offset is available.
-