public class XMLReaderPool extends Object
| Constructor and Description |
|---|
XMLReaderPool(SAXParserFactory saxParserFactory)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
XMLReader |
createXMLReader()
Returns an XMLReader that can be used exactly once.
|
public XMLReaderPool(SAXParserFactory saxParserFactory)
saxParserFactory - the SAXParserFactory used to create new SAXParser instancespublic XMLReader createXMLReader() throws SAXException, ParserConfigurationException
parse methods returns the reader
to the pool. This is useful for e.g. SAXSource which bundles an XMLReader with an InputSource that can also be
consumed just once.SAXException - see SAXParserFactory.newSAXParser()ParserConfigurationException - see SAXParserFactory.newSAXParser()Apache Camel