public class DefaultHandler extends Object implements EntityResolver, DTDHandler, ContentHandler, ErrorHandler:
No-op SAX handler covering the common SAX callback interfaces.
Applications can extend this class and override only the callbacks they need. The default error callbacks do not throw, matching the standard SAX helper behavior.
@example `klyn import klyn.io.xml.sax
handler = DefaultHandler() handler.startDocument()
| Modifier and Type | Member | Description |
|---|---|---|
| public | DefaultHandler | Creates a no-op handler. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | characterscharacters(ch as Array<Char>, start as Int, length as Int) as Void throws SAXException: |
Receives character data. |
| public | declarationdeclaration(version as String, encoding as String, standalone as String) as Void throws SAXException: |
Receives the XML declaration pseudo-attributes. |
| public | endDocumentendDocument() as Void throws SAXException: |
Receives the end of a document. |
| public | endElementendElement(uri as String, localName as String, qName as String) as Void throws SAXException: |
Receives the end of an element. |
| public | endPrefixMappingendPrefixMapping(prefix as String) as Void throws SAXException: |
Receives the end of a Namespace prefix scope. |
| public | errorerror(exception as SAXParseException) as Void throws SAXException: |
Receives a recoverable error. |
| public | fatalErrorfatalError(exception as SAXParseException) as Void throws SAXException: |
Receives a fatal error. |
| public | ignorableWhitespaceignorableWhitespace(ch as Array<Char>, start as Int, length as Int) as Void throws SAXException: |
Receives ignorable whitespace. |
| public | notationDeclnotationDecl(name as String, publicId as String, systemId as String) as Void throws SAXException: |
Receives notation declarations. |
| public | processingInstructionprocessingInstruction(target as String, data as String) as Void throws SAXException: |
Receives a processing instruction. |
| public | resolveEntityresolveEntity(publicId as String, systemId as String) as InputSource throws SAXException, IOException: |
Resolves an external entity. |
| public | setDocumentLocatorsetDocumentLocator(locator as Locator) as Void: |
Receives the parser locator. |
| public | skippedEntityskippedEntity(name as String) as Void throws SAXException: |
Receives notification of a skipped entity. |
| public | startDocumentstartDocument() as Void throws SAXException: |
Receives the beginning of a document. |
| public | startElementstartElement(uri as String, localName as String, qName as String, atts as Attributes) as Void throws SAXException: |
Receives the beginning of an element. |
| public | startPrefixMappingstartPrefixMapping(prefix as String, uri as String) as Void throws SAXException: |
Receives the beginning of a Namespace prefix scope. |
| public | unparsedEntityDeclunparsedEntityDecl(name as String, publicId as String, systemId as String, notationName as String) as Void throws SAXException: |
Receives unparsed entity declarations. |
| public | warningwarning(exception as SAXParseException) as Void throws SAXException: |
Receives a recoverable warning. |