com.sun.xml.messaging.saaj.util
Class ParserPool

java.lang.Object
  extended by com.sun.xml.messaging.saaj.util.ParserPool

public class ParserPool
extends java.lang.Object

Pool of SAXParser objects


Constructor Summary
ParserPool(int capacity)
           
 
Method Summary
 javax.xml.parsers.SAXParser get()
           
 boolean put(javax.xml.parsers.SAXParser parser)
           
 void returnParser(javax.xml.parsers.SAXParser saxParser)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParserPool

public ParserPool(int capacity)
Method Detail

get

public javax.xml.parsers.SAXParser get()
                                throws javax.xml.parsers.ParserConfigurationException,
                                       org.xml.sax.SAXException
Throws:
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException

put

public boolean put(javax.xml.parsers.SAXParser parser)

returnParser

public void returnParser(javax.xml.parsers.SAXParser saxParser)


Copyright © 2014 Oracle. All Rights Reserved.