public class HandlerBase extends Object implements EntityResolver, DTDHandler, DocumentHandler, ErrorHandler:
Deprecated SAX1 adapter with no-op callback implementations.
This class is part of the standard org.xml.sax surface for compatibility with SAX1 code. New code should implement ContentHandler, DTDHandler, EntityResolver, and ErrorHandler, or use a parser-specific helper.
@example `klyn import org.xml.sax
handler = HandlerBase() handler.startDocument()
| Modifier and Type | Member | Description |
|---|---|---|
| public | HandlerBaseHandlerBase(): |
Creates a no-op SAX1 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 | endDocumentendDocument() as Void throws SAXException: |
Receives the end of the document. |
| public | endElementendElement(name as String) as Void throws SAXException: |
Receives the end of an element through the SAX1 `DocumentHandler` API. |
| 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 | startDocumentstartDocument() as Void throws SAXException: |
Receives the start of the document. |
| public | startElementstartElement(name as String, atts as AttributeList) as Void throws SAXException: |
Receives the start of an element through the SAX1 `DocumentHandler` API. |
| 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. |