Locator2
interface in package org.xml.sax.ext

    public interface Locator2 extends Locator:

Locator
└ Locator2

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())

Methods

Modifier and Type | Member | Description
--- | --- | ---
public | getEncoding `getEncoding() as String` | Returns the character encoding for the current entity.
public | getXMLVersion `getXMLVersion() as String` | Returns the XML version for the current entity.

Methods inherited from Locator: getColumnNumber, getLineNumber, getPublicId, getSystemId