javax.xml.transform

Interface SourceLocator

Known Subinterfaces:
DOMLocator

public interface SourceLocator

The location in an XML resource at which an event occurred. Tis is equivalent to the SAX Locator.

Method Summary

int
getColumnNumber()
Returns the column number at which the event occurred.
int
getLineNumber()
Returns the line number at which the event occurred.
String
getPublicId()
Returns the XML public ID for the document.
String
getSystemId()
Returns the XML system ID for the document.

Method Details

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.