javax.xml.stream
Interface Location


public interface Location

Information about the location of an XML event within the underlying stream.


Method Summary
 int getCharacterOffset()
          Returns the offset from the start of the source, in bytes or characters depending on the nature of the source, or -1 if this is not available.
 int getColumnNumber()
          Returns the column number at which the current event ends, or -1 if this is not available.
 int getLineNumber()
          Returns the line number at which the current event ends, or -1 if this is not available.
 String getPublicId()
          Returns the public identifier for this location, if any.
 String getSystemId()
          Returns the system identifier for the underlying source.
 

Method Detail

getLineNumber

int getLineNumber()
Returns the line number at which the current event ends, or -1 if this is not available.


getColumnNumber

int getColumnNumber()
Returns the column number at which the current event ends, or -1 if this is not available.


getCharacterOffset

int getCharacterOffset()
Returns the offset from the start of the source, in bytes or characters depending on the nature of the source, or -1 if this is not available.


getPublicId

String getPublicId()
Returns the public identifier for this location, if any.


getSystemId

String getSystemId()
Returns the system identifier for the underlying source.