javax.xml.transform
Interface SourceLocator

All 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 Detail

getPublicId

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


getSystemId

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


getLineNumber

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

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

getColumnNumber

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

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