FileDocCategorySizeDatePackage
XMLLocator.javaAPI DocJava SE 6 API2816Tue Jun 10 00:22:54 BST 2008com.sun.org.apache.xerces.internal.xni

XMLLocator

public interface XMLLocator
Location information.
author
Andy Clark, IBM
version
$Id: XMLLocator.java,v 1.2.6.1 2005/09/06 08:53:26 neerajbj Exp $

Fields Summary
Constructors Summary
Methods Summary
public java.lang.StringgetBaseSystemId()
Returns the base system identifier.

public intgetCharacterOffset()
Returns the character offset, or -1 if no character offset is available.

public intgetColumnNumber()
Returns the column number, or -1 if no column number is available.

public java.lang.StringgetEncoding()
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.

public java.lang.StringgetExpandedSystemId()
Returns the expanded system identifier.

public intgetLineNumber()
Returns the line number, or -1 if no line number is available.

public java.lang.StringgetLiteralSystemId()
Returns the literal system identifier.

public java.lang.StringgetPublicId()
Returns the public identifier.

public java.lang.StringgetXMLVersion()
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.