public class SAXLocator extends Object implements Locator2
Mutable locator used by the pure Klyn SAX parser.
The reader updates this object before reporting document events. Applications can keep a reference to it, but the values are meaningful only during parser callbacks.
import klyn.io.xml.sax locator = SAXLocator() locator.setPosition(4, 12) print(locator.getLineNumber())
| Modifier and Type | Member | Description |
|---|---|---|
| public | SAXLocator | Creates a locator without source identifiers. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | getColumnNumbergetColumnNumber() as Int |
Returns the current one-based column number. |
| public | getEncodinggetEncoding() as String |
Returns the character encoding. |
| public | getLineNumbergetLineNumber() as Int |
Returns the current one-based line number. |
| public | getPublicIdgetPublicId() as String |
Returns the public identifier. |
| public | getSystemIdgetSystemId() as String |
Returns the system identifier. |
| public | getXMLVersiongetXMLVersion() as String |
Returns the XML version. |
| public | setEncodingsetEncoding(encoding as String) as Void |
Sets the character encoding reported by Locator2. |
| public | setPosition | Sets the current one-based line and column. |
| public | setPublicIdsetPublicId(publicId as String) as Void |
Sets the public identifier. |
| public | setSystemIdsetSystemId(systemId as String) as Void |
Sets the system identifier. |
| public | setXMLVersionsetXMLVersion(xmlVersion as String) as Void |
Sets the XML version reported by Locator2. |