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
 XMLReader createXMLReader()
           
 

Method Detail

createXMLReader

XMLReader createXMLReader()
                          throws SAXException,
                                 ParserConfigurationException
Returns:
the optimised XML Reader instance
Throws:
SAXException - in case of an error in the creation of the XML Reader instance
ParserConfigurationException - in case of an error in the creation of the XML Reader instance


Copyright © 2004-2011 XWiki. All Rights Reserved.