| java.lang.Object org.apache.xml.utils.XMLReaderManager
XMLReaderManager | public class XMLReaderManager (Code) | | Creates XMLReader objects and caches them for re-use.
This class follows the singleton pattern.
|
getXMLReader | public synchronized XMLReader getXMLReader() throws SAXException(Code) | | Retrieves a cached XMLReader for this thread, or creates a new
XMLReader, if the existing reader is in use. When the caller no
longer needs the reader, it must release it with a call to
XMLReaderManager.releaseXMLReader .
|
releaseXMLReader | public synchronized void releaseXMLReader(XMLReader reader)(Code) | | Mark the cached XMLReader as available. If the reader was not
actually in the cache, do nothing.
Parameters: reader - The XMLReader that's being released. |
|
|