/** * Initialize the pool. * * @throws XMLParserException thrown if pool can not be initialized, * or if it is already initialized * **/ public synchronized void initialize() throws XMLParserException { if (initialized) { throw new XMLParserException("Parser pool was already initialized"); } initializeFactory(); initialized = true; }
/** * Initialize the pool. * * @throws XMLParserException thrown if pool can not be initialized, * or if it is already initialized * **/ public synchronized void initialize() throws XMLParserException { if (initialized) { throw new XMLParserException("Parser pool was already initialized"); } initializeFactory(); initialized = true; }