public class LocatorProxy
extends java.lang.Object
implements org.xml.sax.ext.Locator2
XMLLocator
and make it look like a SAX Locator
.Constructor and Description |
---|
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 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.