com.jxml.quick.recycle
Class QParserPool
java.lang.Object
|
+--com.jxml.quick.recycle.QParserPool
- public final class QParserPool
- extends Object
Manages a pool or reusable Parser objects.
Constructor Summary |
QParserPool()
Create parser objects using the 'org.xml.sax.parser' system property. |
QParserPool(String className)
Create parser objects of the specified class. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
parserClassName
public static String parserClassName
sax2
public static boolean sax2
QParserPool
public QParserPool()
- Create parser objects using the 'org.xml.sax.parser' system property.
QParserPool
public QParserPool(String className)
- Create parser objects of the specified class.
allocate
public Parser allocate()
throws ClassNotFoundException,
IllegalAccessException,
InstantiationException
- Allocate a previously used parser. If none exists, create a new one.
release
public void release(Parser parser)
- The parser is now available for reuse.