| The SAXHPool implements a global pool of SAXalizerHelper (and
hence SAXalizer) objects that may be dipped into by all clients in
a threadsafe manner. SAXalizerHelpers are supplied from the
getSAXalizerHelper method, and are automatically returned to the
pool when their parse is complete. The purpose of this class is to
avoid frequent construction of these highly expensive SAX parser
objects, and also to avoid the overhead (and danger) of the silly
situation we once had when each major class kept its own pet
SAXalizer for its personal use.
Typical usage of this class is as
SAXHPool.getSAXalizerHelper().produceSubtree(rootobj, stream) ;
|