Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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.

Field Summary
`static String` | `parserClassName`
`static boolean` | `sax2`

Constructor Summary
`QParserPool()` Create parser objects using the 'org.xml.sax.parser' system property.
`QParserPool(String className)` Create parser objects of the specified class.

Method Summary
`Parser` | `allocate()` Allocate a previously used parser.
`void` | `release(Parser parser)` The parser is now available for reuse.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### parserClassName

    public static String parserClassName

### sax2

    public static boolean sax2

Constructor Detail

### 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.

Method Detail

### 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.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD