- All Known Implementing Classes:
HTMLScanner,XMLLocatorImpl
Interface for tracking location information during document parsing.
Extends SAX Locator2 to provide additional system identifiers
and character offsets for precise error reporting and source tracking.
- Author:
- Andy Clark, IBM
-
Method Summary
Modifier and TypeMethodDescriptionReturns the base system identifier.intReturns the character offset within the input stream or character stream.Returns the literal system identifier.Methods inherited from interface org.xml.sax.Locator
getColumnNumber, getLineNumber, getPublicId, getSystemIdMethods inherited from interface org.xml.sax.ext.Locator2
getEncoding, getXMLVersion
-
Method Details
-
getLiteralSystemId
String getLiteralSystemId()Returns the literal system identifier.- Returns:
- the literal system identifier, or
nullif none is available
-
getBaseSystemId
String getBaseSystemId()Returns the base system identifier.- Returns:
- the base system identifier, or
nullif none is available
-
getCharacterOffset
int getCharacterOffset()Returns the character offset within the input stream or character stream.- Returns:
- the character offset, or
-1if no character offset is available
-