protected static final class AbstractSAXParser.LocatorProxy
extends java.lang.Object
implements org.xml.sax.ext.Locator2
Modifier and Type | Field and Description |
---|---|
protected org.apache.xerces.xni.XMLLocator |
fLocator
XML locator.
|
Constructor and Description |
---|
AbstractSAXParser.LocatorProxy(org.apache.xerces.xni.XMLLocator locator)
Constructs an XML locator proxy.
|
Modifier and Type | Method and Description |
---|---|
int |
getColumnNumber()
Column number.
|
java.lang.String |
getEncoding()
Returns the name of the character encoding for the entity.
|
int |
getLineNumber()
Line number.
|
java.lang.String |
getPublicId()
Public identifier.
|
java.lang.String |
getSystemId()
System identifier.
|
java.lang.String |
getXMLVersion()
Returns the version of XML used for the entity.
|
public AbstractSAXParser.LocatorProxy(org.apache.xerces.xni.XMLLocator locator)
public java.lang.String getPublicId()
getPublicId
in interface org.xml.sax.Locator
Locator.getSystemId()
public java.lang.String getSystemId()
getSystemId
in interface org.xml.sax.Locator
Locator.getPublicId()
public int getLineNumber()
getLineNumber
in interface org.xml.sax.Locator
Locator.getColumnNumber()
public int getColumnNumber()
getColumnNumber
in interface org.xml.sax.Locator
Locator.getLineNumber()
public java.lang.String getXMLVersion()
org.xml.sax.ext.Locator2
getXMLVersion
in interface org.xml.sax.ext.Locator2
public java.lang.String getEncoding()
org.xml.sax.ext.Locator2
When an InputSource
is used
to provide an entity's character stream, this method returns the
encoding provided in that input stream.
Note that some recent W3C specifications require that text in some encodings be normalized, using Unicode Normalization Form C, before processing. Such normalization must be performed by applications, and would normally be triggered based on the value returned by this method.
Encoding names may be those used by the underlying JVM, and comparisons should be case-insensitive.
getEncoding
in interface org.xml.sax.ext.Locator2
Copyright © 1999-2022 The Apache Software Foundation. All Rights Reserved.