javax.xml.transform

Interface SourceLocator

public interface SourceLocator

The location in an XML resource at which an event occurred. Tis is equivalent to the SAX Locator.
Method Summary
intgetColumnNumber()
Returns the column number at which the event occurred.
intgetLineNumber()
Returns the line number at which the event occurred.
StringgetPublicId()
Returns the XML public ID for the document.
StringgetSystemId()
Returns the XML system ID for the document.

Method Detail

getColumnNumber

public int getColumnNumber()
Returns the column number at which the event occurred.

Returns: the column number, or -1 if not available

getLineNumber

public int getLineNumber()
Returns the line number at which the event occurred.

Returns: the line number, or -1 if not available

getPublicId

public String getPublicId()
Returns the XML public ID for the document.

getSystemId

public String getSystemId()
Returns the XML system ID for the document.