Top Description Methods
com.sun.org.apache.xerces.internal.xni

public Interface XMLLocator

Known Direct Implementers
com.sun.xml.internal.stream.XMLEntityReader, com.sun.org.apache.xerces.internal.impl.XMLEntityScanner, com.sun.org.apache.xerces.internal.impl.xs.util.SimpleLocator, com.sun.org.apache.xerces.internal.util.LocatorWrapper, com.sun.org.apache.xerces.internal.util.SAXLocatorWrapper, com.sun.org.apache.xerces.internal.util.StAXLocationWrapper, com.sun.org.apache.xerces.internal.util.XMLLocatorWrapper

Location information.
Author
Andy Clark, IBM

Method Summary

Modifier and TypeMethod and Description
public String
getBaseSystemId()

Returns the base system identifier.

public int
getCharacterOffset()

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

public int
getColumnNumber()

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

public String
getEncoding()

Returns the encoding of the current entity.

public String
getExpandedSystemId()

Returns the expanded system identifier.

public int
getLineNumber()

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

public String
getLiteralSystemId()

Returns the literal system identifier.

public String
getPublicId()

Returns the public identifier.

public String
getXMLVersion()

Returns the XML version of the current entity.

Method Detail

getBaseSystemIdback to summary
public String getBaseSystemId()

Returns the base system identifier.

getCharacterOffsetback to summary
public int getCharacterOffset()

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

getColumnNumberback to summary
public int getColumnNumber()

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

getEncodingback to summary
public String 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()

Returns the expanded system identifier.

getLineNumberback to summary
public int getLineNumber()

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

getLiteralSystemIdback to summary
public String getLiteralSystemId()

Returns the literal system identifier.

getPublicIdback to summary
public String getPublicId()

Returns the public identifier.

getXMLVersionback to summary
public String getXMLVersion()

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