Class XMLLocatorImpl
- java.lang.Object
-
- org.htmlunit.cyberneko.xerces.util.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 Summary
Fields Modifier and Type Field Description private intcolumnNumber_private intlineNumber_private java.lang.StringpublicId_private java.lang.StringsystemId_
-
Constructor Summary
Constructors Constructor Description XMLLocatorImpl(java.lang.String publicId, java.lang.String systemId, int lineNumber, int columnNumber)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetBaseSystemId()intgetCharacterOffset()intgetColumnNumber()java.lang.StringgetEncoding()intgetLineNumber()java.lang.StringgetLiteralSystemId()java.lang.StringgetPublicId()java.lang.StringgetSystemId()java.lang.StringgetXMLVersion()
-
-
-
Method Detail
-
getXMLVersion
public java.lang.String getXMLVersion()
- Specified by:
getXMLVersionin interfaceorg.xml.sax.ext.Locator2
-
getEncoding
public java.lang.String getEncoding()
- Specified by:
getEncodingin interfaceorg.xml.sax.ext.Locator2
-
getPublicId
public java.lang.String getPublicId()
- Specified by:
getPublicIdin interfaceorg.xml.sax.Locator
-
getSystemId
public java.lang.String getSystemId()
- Specified by:
getSystemIdin interfaceorg.xml.sax.Locator
-
getLineNumber
public int getLineNumber()
- Specified by:
getLineNumberin interfaceorg.xml.sax.Locator
-
getColumnNumber
public int getColumnNumber()
- Specified by:
getColumnNumberin interfaceorg.xml.sax.Locator
-
getLiteralSystemId
public java.lang.String getLiteralSystemId()
- Specified by:
getLiteralSystemIdin interfaceXMLLocator- Returns:
- the literal system identifier.
-
getBaseSystemId
public java.lang.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.
-
-