public interface Locator2 extends Locator:
SAX2 extension for XML version and encoding locator metadata.
Parsers can pass a Locator2 instance to ContentHandler.setDocumentLocator when the use-locator2 feature reports support.
@example `klyn import org.xml.sax.ext
locator as Locator2 = null if locator is not null: print(locator.getXMLVersion())
| Modifier and Type | Member | Description |
|---|---|---|
| public | getEncodinggetEncoding() as String |
Returns the character encoding for the current entity. |
| public | getXMLVersiongetXMLVersion() as String |
Returns the XML version for the current entity. |