Decorator base class for the ContentHandler interface. This class
simply delegates all SAX events calls to an underlying decorated handler
instance. Subclasses can provide extra decoration by overriding one or more
of the SAX event methods.

Constructor Summary

protected

ContentHandlerDecorator()
Creates a decorator that by default forwards incoming SAX events to
a dummy content handler that simply ignores all the events.

ContentHandlerDecorator

ContentHandlerDecorator

protected ContentHandlerDecorator()

Creates a decorator that by default forwards incoming SAX events to
a dummy content handler that simply ignores all the events. Subclasses
should use the setContentHandler(ContentHandler) method to
switch to a more usable underlying content handler.

toString

handleException

Handle any exceptions thrown by methods in this class. This method
provides a single place to implement custom exception handling. The
default behaviour is simply to re-throw the given exception, but
subclasses can also provide alternative ways of handling the situation.