HandlerBase
classin packageorg.xml.sax
public class HandlerBase extends Object implements EntityResolver, DTDHandler, DocumentHandler, ErrorHandler
└ HandlerBase
All Implemented Interfaces: 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
import org.xml.sax

handler = HandlerBase()
handler.startDocument()
Inherited Properties
propertyInherited Properties from Object: type
Constructors
Modifier and Type Member Description
public HandlerBase Creates a no-op SAX1 handler.
Methods
Modifier and Type Member Description
public characters
characters(ch as Array<CodeUnit>, start as Int, length as Int) as Void throws SAXException
Receives character data.
public endDocument
endDocument() as Void throws SAXException
Receives the end of the document.
public endElement
endElement(name as String) as Void throws SAXException
Receives the end of an element through the SAX1 DocumentHandler API.
public error
error(exception as SAXParseException) as Void throws SAXException
Receives a recoverable error.
public fatalError
fatalError(exception as SAXParseException) as Void throws SAXException
Receives a fatal error.
public ignorableWhitespace
ignorableWhitespace(ch as Array<CodeUnit>, start as Int, length as Int) as Void throws SAXException
Receives ignorable whitespace.
public notationDecl
notationDecl(name as String, publicId as String, systemId as String) as Void throws SAXException
Receives notation declarations.
public processingInstruction
processingInstruction(target as String, data as String) as Void throws SAXException
Receives a processing instruction.
public resolveEntity
resolveEntity(publicId as String, systemId as String) as InputSource throws SAXException, IOException
Resolves an external entity.
public setDocumentLocator
setDocumentLocator(locator as Locator) as Void
Receives the parser locator.
public startDocument
startDocument() as Void throws SAXException
Receives the start of the document.
public startElement
startElement(name as String, atts as AttributeList) as Void throws SAXException
Receives the start of an element through the SAX1 DocumentHandler API.
public unparsedEntityDecl
unparsedEntityDecl(name as String, publicId as String, systemId as String, notationName as String) as Void throws SAXException
Receives unparsed entity declarations.
public warning
warning(exception as SAXParseException) as Void throws SAXException
Receives a recoverable warning.
Inherited Methods
methodInherited Methods from Object: deepCopy, fromJson, hash, toDict, toJson, toMap, toString, toXml