public class XMLReaderManager extends Object
Modifier and Type | Method and Description |
---|---|
static XMLReaderManager |
getInstance()
Retrieves the singleton reader manager
|
XMLReader |
getXMLReader()
Retrieves a cached XMLReader for this thread, or creates a new
XMLReader, if the existing reader is in use.
|
void |
releaseXMLReader(XMLReader reader)
Mark the cached XMLReader as available.
|
public static XMLReaderManager getInstance()
public XMLReader getXMLReader() throws SAXException
releaseXMLReader(org.xml.sax.XMLReader)
.SAXException
public void releaseXMLReader(XMLReader reader)
reader
- The XMLReader that's being released.Copyright © 2017 JBoss by Red Hat. All rights reserved.