public final class SAXLocatorWrapper
extends java.lang.Object
implements org.apache.xerces.xni.XMLLocator
A light wrapper around a SAX locator. This is useful when bridging between SAX and XNI components.
| Constructor and Description | 
|---|
| SAXLocatorWrapper() | 
| Modifier and Type | Method and Description | 
|---|---|
| java.lang.String | getBaseSystemId()Returns the base system identifier. | 
| int | getCharacterOffset()Returns the character offset, or  -1if no character offset is available. | 
| int | getColumnNumber()Returns the column number, or  -1if no column number is available. | 
| java.lang.String | getEncoding()Returns the encoding of the current entity. | 
| java.lang.String | getExpandedSystemId()Returns the expanded system identifier. | 
| int | getLineNumber()Returns the line number, or  -1if no line number is available. | 
| java.lang.String | getLiteralSystemId()Returns the literal system identifier. | 
| org.xml.sax.Locator | getLocator() | 
| java.lang.String | getPublicId()Returns the public identifier. | 
| java.lang.String | getXMLVersion()Returns the XML version of the current entity. | 
| void | setLocator(org.xml.sax.Locator locator) | 
public void setLocator(org.xml.sax.Locator locator)
public org.xml.sax.Locator getLocator()
public java.lang.String getPublicId()
org.apache.xerces.xni.XMLLocatorgetPublicId in interface org.apache.xerces.xni.XMLLocatorpublic java.lang.String getLiteralSystemId()
org.apache.xerces.xni.XMLLocatorgetLiteralSystemId in interface org.apache.xerces.xni.XMLLocatorpublic java.lang.String getBaseSystemId()
org.apache.xerces.xni.XMLLocatorgetBaseSystemId in interface org.apache.xerces.xni.XMLLocatorpublic java.lang.String getExpandedSystemId()
org.apache.xerces.xni.XMLLocatorgetExpandedSystemId in interface org.apache.xerces.xni.XMLLocatorpublic int getLineNumber()
org.apache.xerces.xni.XMLLocator-1 if no line number is available.getLineNumber in interface org.apache.xerces.xni.XMLLocatorpublic int getColumnNumber()
org.apache.xerces.xni.XMLLocator-1 if no column number is available.getColumnNumber in interface org.apache.xerces.xni.XMLLocatorpublic int getCharacterOffset()
org.apache.xerces.xni.XMLLocator-1 if no character offset is available.getCharacterOffset in interface org.apache.xerces.xni.XMLLocatorpublic java.lang.String getEncoding()
org.apache.xerces.xni.XMLLocatorgetEncoding in interface org.apache.xerces.xni.XMLLocatorpublic java.lang.String getXMLVersion()
org.apache.xerces.xni.XMLLocatorgetXMLVersion in interface org.apache.xerces.xni.XMLLocatorCopyright © 1999-2022 The Apache Software Foundation. All Rights Reserved.