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 Summary
Constructors Constructor Description XMLLocatorImpl(String publicId, String systemId, int lineNumber, int columnNumber)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBaseSystemId()intgetCharacterOffset()intgetColumnNumber()StringgetEncoding()intgetLineNumber()StringgetLiteralSystemId()StringgetPublicId()StringgetSystemId()StringgetXMLVersion()
-
-
-
Method Detail
-
getXMLVersion
public String getXMLVersion()
- Specified by:
getXMLVersionin interfaceLocator2
-
getEncoding
public String getEncoding()
- Specified by:
getEncodingin interfaceLocator2
-
getPublicId
public String getPublicId()
- Specified by:
getPublicIdin interfaceLocator
-
getSystemId
public String getSystemId()
- Specified by:
getSystemIdin interfaceLocator
-
getLineNumber
public int getLineNumber()
- Specified by:
getLineNumberin interfaceLocator
-
getColumnNumber
public int getColumnNumber()
- Specified by:
getColumnNumberin interfaceLocator
-
getLiteralSystemId
public String getLiteralSystemId()
- Specified by:
getLiteralSystemIdin interfaceXMLLocator- Returns:
- the literal system identifier.
-
getBaseSystemId
public String 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.
-
-