org.xwiki.xml
Interface XMLReaderFactory

All Known Implementing Classes:
DefaultXMLReaderFactory

@ComponentRole
public interface XMLReaderFactory

Factory to create optimised XMLReader. This gives us a level of indirection versus using directly SAXParserFactory. We use that for example to verify if we're using Xerces and if so we configure it to cache parsed DTD grammars for better performance.

Since:
1.7.1
Version:
$Id$

Method Summary
 org.xml.sax.XMLReader createXMLReader()
           
 

Method Detail

createXMLReader

org.xml.sax.XMLReader createXMLReader()
                                      throws org.xml.sax.SAXException,
                                             javax.xml.parsers.ParserConfigurationException
Returns:
the optimised XML Reader instance
Throws:
org.xml.sax.SAXException - in case of an error in the creation of the XML Reader instance
javax.xml.parsers.ParserConfigurationException - in case of an error in the creation of the XML Reader instance


Copyright © 2004-2011 XWiki. All Rights Reserved.