Package org.apache.xerces.util
Class SAXLocatorWrapper
java.lang.Object
org.apache.xerces.util.SAXLocatorWrapper
- All Implemented Interfaces:
org.apache.xerces.xni.XMLLocator
A light wrapper around a SAX locator. This is useful when bridging between SAX and XNI components.
- Version:
- $Id: SAXLocatorWrapper.java 699892 2008-09-28 21:08:27Z mrglavas $
- Author:
- Michael Glavassevich, IBM
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the base system identifier.intReturns the character offset, or-1if no character offset is available.intReturns the column number, or-1if no column number is available.Returns the encoding of the current entity.Returns the expanded system identifier.intReturns the line number, or-1if no line number is available.Returns the literal system identifier.Returns the public identifier.Returns the XML version of the current entity.voidsetLocator(Locator locator)
-
Constructor Details
-
SAXLocatorWrapper
public SAXLocatorWrapper()
-
-
Method Details
-
setLocator
-
getLocator
-
getPublicId
Description copied from interface:org.apache.xerces.xni.XMLLocatorReturns the public identifier.- Specified by:
getPublicIdin interfaceorg.apache.xerces.xni.XMLLocator
-
getLiteralSystemId
Description copied from interface:org.apache.xerces.xni.XMLLocatorReturns the literal system identifier.- Specified by:
getLiteralSystemIdin interfaceorg.apache.xerces.xni.XMLLocator
-
getBaseSystemId
Description copied from interface:org.apache.xerces.xni.XMLLocatorReturns the base system identifier.- Specified by:
getBaseSystemIdin interfaceorg.apache.xerces.xni.XMLLocator
-
getExpandedSystemId
Description copied from interface:org.apache.xerces.xni.XMLLocatorReturns the expanded system identifier.- Specified by:
getExpandedSystemIdin interfaceorg.apache.xerces.xni.XMLLocator
-
getLineNumber
public int getLineNumber()Description copied from interface:org.apache.xerces.xni.XMLLocatorReturns the line number, or-1if no line number is available.- Specified by:
getLineNumberin interfaceorg.apache.xerces.xni.XMLLocator
-
getColumnNumber
public int getColumnNumber()Description copied from interface:org.apache.xerces.xni.XMLLocatorReturns the column number, or-1if no column number is available.- Specified by:
getColumnNumberin interfaceorg.apache.xerces.xni.XMLLocator
-
getCharacterOffset
public int getCharacterOffset()Description copied from interface:org.apache.xerces.xni.XMLLocatorReturns the character offset, or-1if no character offset is available.- Specified by:
getCharacterOffsetin interfaceorg.apache.xerces.xni.XMLLocator
-
getEncoding
Description copied from interface:org.apache.xerces.xni.XMLLocatorReturns the encoding of the current entity. Note that, for a given entity, this value can only be considered final once the encoding declaration has been read (or once it has been determined that there is no such declaration) since, no encoding having been specified on the XMLInputSource, the parser will make an initial "guess" which could be in error.- Specified by:
getEncodingin interfaceorg.apache.xerces.xni.XMLLocator
-
getXMLVersion
Description copied from interface:org.apache.xerces.xni.XMLLocatorReturns the XML version of the current entity. This will normally be the value from the XML or text declaration or defaulted by the parser. Note that that this value may be different than the version of the processing rules applied to the current entity. For instance, an XML 1.1 document may refer to XML 1.0 entities. In such a case the rules of XML 1.1 are applied to the entire document. Also note that, for a given entity, this value can only be considered final once the XML or text declaration has been read or once it has been determined that there is no such declaration.- Specified by:
getXMLVersionin interfaceorg.apache.xerces.xni.XMLLocator
-