Top Description Fields Constructors Methods
com.sun.org.apache.xerces.internal.util

public Class LocatorWrapper

extends Object
implements XMLLocator
Class Inheritance
All Implemented Interfaces
com.sun.org.apache.xerces.internal.xni.XMLLocator
Imports
com.sun.org.apache.xerces.internal.xni.XMLLocator, org.xml.sax.Locator

Wraps SAX Locator into Xerces XMLLocator.
Author
Kohsuke Kawaguchi

Field Summary

Modifier and TypeField and Description
private final Locator

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
public int
getCharacterOffset()

Implements com.sun.org.apache.xerces.internal.xni.XMLLocator.getCharacterOffset.

Returns the character offset, or -1, if no character offset is available.

public int
getColumnNumber()

Implements com.sun.org.apache.xerces.internal.xni.XMLLocator.getColumnNumber.

Returns the column number, or -1 if no column number is available.

public String
getEncoding()

Implements com.sun.org.apache.xerces.internal.xni.XMLLocator.getEncoding.

Returns the encoding of the current entity.

public String
public int
getLineNumber()

Implements com.sun.org.apache.xerces.internal.xni.XMLLocator.getLineNumber.

Returns the line number, or -1 if no line number is available.

public String
public String
public String
getXMLVersion()

Implements com.sun.org.apache.xerces.internal.xni.XMLLocator.getXMLVersion.

Returns the XML version of the current entity.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

locatorback to summary
private final Locator locator

Constructor Detail

LocatorWrapperback to summary
public LocatorWrapper(Locator _loc)

Method Detail

getBaseSystemIdback to summary
public String getBaseSystemId()

Implements com.sun.org.apache.xerces.internal.xni.XMLLocator.getBaseSystemId.

Doc from com.sun.org.apache.xerces.internal.xni.XMLLocator.getBaseSystemId.

Returns the base system identifier.

getCharacterOffsetback to summary
public int getCharacterOffset()

Implements com.sun.org.apache.xerces.internal.xni.XMLLocator.getCharacterOffset.

Returns the character offset, or -1, if no character offset is available.

As this information is not available from org.xml.sax.Locator, always return -1.

getColumnNumberback to summary
public int getColumnNumber()

Implements com.sun.org.apache.xerces.internal.xni.XMLLocator.getColumnNumber.

Doc from com.sun.org.apache.xerces.internal.xni.XMLLocator.getColumnNumber.

Returns the column number, or -1 if no column number is available.

getEncodingback to summary
public String getEncoding()

Implements com.sun.org.apache.xerces.internal.xni.XMLLocator.getEncoding.

Doc from com.sun.org.apache.xerces.internal.xni.XMLLocator.getEncoding.

Returns 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.

getExpandedSystemIdback to summary
public String getExpandedSystemId()

Implements com.sun.org.apache.xerces.internal.xni.XMLLocator.getExpandedSystemId.

Doc from com.sun.org.apache.xerces.internal.xni.XMLLocator.getExpandedSystemId.

Returns the expanded system identifier.

getLineNumberback to summary
public int getLineNumber()

Implements com.sun.org.apache.xerces.internal.xni.XMLLocator.getLineNumber.

Doc from com.sun.org.apache.xerces.internal.xni.XMLLocator.getLineNumber.

Returns the line number, or -1 if no line number is available.

getLiteralSystemIdback to summary
public String getLiteralSystemId()

Implements com.sun.org.apache.xerces.internal.xni.XMLLocator.getLiteralSystemId.

Doc from com.sun.org.apache.xerces.internal.xni.XMLLocator.getLiteralSystemId.

Returns the literal system identifier.

getPublicIdback to summary
public String getPublicId()

Implements com.sun.org.apache.xerces.internal.xni.XMLLocator.getPublicId.

Doc from com.sun.org.apache.xerces.internal.xni.XMLLocator.getPublicId.

Returns the public identifier.

getXMLVersionback to summary
public String getXMLVersion()

Implements com.sun.org.apache.xerces.internal.xni.XMLLocator.getXMLVersion.

Returns the XML version of the current entity.

As this information is not available from org.xml.sax.Locator, always return null.