HandlerBase

public class HandlerBase extends Object
implements EntityResolver DTDHandler DocumentHandler ErrorHandler

This class was deprecated.
This class works with the deprecated DocumentHandler interface. It has been replaced by the SAX2 DefaultHandler class.

Default base class for handlers.

This module, both source code and documentation, is in the Public Domain, and comes with NO WARRANTY. See http://www.saxproject.org for further information.

This class implements the default behaviour for four SAX1 interfaces: EntityResolver, DTDHandler, DocumentHandler, and ErrorHandler. It is now obsolete, but is included in SAX2 to support legacy SAX1 applications. SAX2 applications should use the DefaultHandler class instead.

Application writers can extend this class when they need to implement only part of an interface; parser writers can instantiate this class to provide default handlers when the application has not supplied its own.

Note that the use of this class is optional.

Public Constructor Summary

Public Method Summary

void
characters(char[] ch, int start, int length)
Receive notification of character data inside an element.
void
endDocument()
Receive notification of the end of the document.
void
endElement(String name)
Receive notification of the end of an element.
void
error(SAXParseException e)
Receive notification of a recoverable parser error.
void
fatalError(SAXParseException e)
Report a fatal XML parsing error.
void
ignorableWhitespace(char[] ch, int start, int length)
Receive notification of ignorable whitespace in element content.
void
notationDecl(String name, String publicId, String systemId)
Receive notification of a notation declaration.
void
processingInstruction(String target, String data)
Receive notification of a processing instruction.
InputSource
resolveEntity(String publicId, String systemId)
Resolve an external entity.
void
setDocumentLocator(Locator locator)
Receive a Locator object for document events.
void
startDocument()
Receive notification of the beginning of the document.
void
startElement(String name, AttributeList attributes)
Receive notification of the start of an element.
void
unparsedEntityDecl(String name, String publicId, String systemId, String notationName)
Receive notification of an unparsed entity declaration.
void
warning(SAXParseException e)
Receive notification of a parser warning.

Inherited Method Summary