Module java.xml

Interface Locator2

All Superinterfaces:
Locator
All Known Implementing Classes:
Locator2Impl

public interface Locator2 extends Locator
SAX2 extension to augment the entity information provided through a Locator. If an implementation supports this extension, the Locator provided in ContentHandler.setDocumentLocator() will implement this interface, and the http://xml.org/sax/features/use-locator2 feature flag will have the value true.

XMLReader implementations are not required to support this information, and it is not part of core-only SAX2 distributions.

Since:
1.5, SAX 2.0 (extensions 1.1 alpha)