Class DefaultContentHandler

java.lang.Object
com.aquima.interactions.foundation.xml.parsing.DefaultContentHandler
All Implemented Interfaces:
ContentHandler

public class DefaultContentHandler extends Object implements ContentHandler
Default SAX2 ContentHandler base class. Does nothing (all handling methods are empty).

Subclass this and override the methods you need, then set this class as the ContentHandler for the SAX parser. This way you don't have to implement the methods you don't need, because this base class has an implementation.

This contenthandler also has a special method to be able to use sub-contenthandlers easily.

Some stuff is implemented here: the location handler and some methods to get a location string / exception.

Since:
5.0
Author:
IdJ