public class DefaultHandler2 extends DefaultHandler implements LexicalHandler, DeclHandler, EntityResolver2:
No-op SAX handler covering the SAX extension callbacks.
This helper extends DefaultHandler with lexical, declaration and SAX2 entity resolver callbacks. Applications can subclass it when they need DTD or CDATA/comment notifications.
@example `klyn import klyn.io.xml.sax
handler = DefaultHandler2() handler.startCDATA() handler.endCDATA()
| Modifier and Type | Member | Description |
|---|---|---|
| public | DefaultHandler2 | Creates a no-op extension handler. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | attributeDecl | Receives an attribute declaration from the DTD. |
| public | commentcomment(ch as Array<Char>, start as Int, length as Int) as Void throws SAXException: |
Receives an XML comment. |
| public override | declarationdeclaration(version as String, encoding as String, standalone as String) as Void throws SAXException: |
Receives the XML declaration pseudo-attributes. |
| public | elementDeclelementDecl(name as String, model as String) as Void throws SAXException: |
Receives an element declaration from the DTD. |
| public | endCDATAendCDATA() as Void throws SAXException: |
Receives the end of a CDATA section. |
| public | endDTDendDTD() as Void throws SAXException: |
Receives the end of a DTD declaration. |
| public | endEntityendEntity(name as String) as Void throws SAXException: |
Receives the end of an entity. |
| public | externalEntityDeclexternalEntityDecl(name as String, publicId as String, systemId as String) as Void throws SAXException: |
Receives an external entity declaration. |
| public | getExternalSubsetgetExternalSubset(name as String, baseURI as String) as InputSource throws SAXException, IOException: |
Provides an external subset. |
| public | internalEntityDeclinternalEntityDecl(name as String, value as String) as Void throws SAXException: |
Receives an internal entity declaration. |
| public | resolveEntityresolveEntity(name as String, publicId as String, baseURI as String, systemId as String) as InputSource throws SAXException, IOException: |
Resolves an external entity using SAX2 metadata. |
| public | resolveEntityresolveEntity(publicId as String, systemId as String) as InputSource throws SAXException, IOException: |
Resolves an external entity using SAX1 metadata. |
| public | startCDATAstartCDATA() as Void throws SAXException: |
Receives the beginning of a CDATA section. |
| public | startDTDstartDTD(name as String, publicId as String, systemId as String) as Void throws SAXException: |
Receives the beginning of a DTD declaration. |
| public | startEntitystartEntity(name as String) as Void throws SAXException: |
Receives the beginning of an entity. |