javax.xml.stream

Interface Location

public interface Location

Information about the location of an XML event within the underlying stream.
Method Summary
intgetCharacterOffset()
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.
intgetColumnNumber()
Returns the column number at which the current event ends, or -1 if this is not available.
intgetLineNumber()
Returns the line number at which the current event ends, or -1 if this is not available.
StringgetPublicId()
Returns the public identifier for this location, if any.
StringgetSystemId()
Returns the system identifier for the underlying source.

Method Detail

getCharacterOffset

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

getColumnNumber

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

getLineNumber

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

getPublicId

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

getSystemId

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