org.xwiki.xml.internal
Class DefaultXMLReaderFactory
java.lang.Object
org.xwiki.xml.internal.DefaultXMLReaderFactory
- All Implemented Interfaces:
- Initializable, XMLReaderFactory
@Component
@Singleton
public class DefaultXMLReaderFactory
- extends java.lang.Object
- implements XMLReaderFactory, Initializable
Verifies if Xerces is on the classpath and if so configures it to cache DTD grammars instead of reparsing
it for every documents, thus greatly improving performances since most XML content handled in XWiki is
XHTML using the XHTML DTD.
- Since:
- 1.7.1
- Version:
- $Id$
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultXMLReaderFactory
public DefaultXMLReaderFactory()
initialize
public void initialize()
throws InitializationException
-
- Specified by:
initialize in interface Initializable
- Throws:
InitializationException- See Also:
Initializable.initialize()
createXMLReader
public org.xml.sax.XMLReader createXMLReader()
throws org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
-
- Specified by:
createXMLReader in interface XMLReaderFactory
- 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- See Also:
XMLReaderFactory.createXMLReader()
Copyright © 2004-2011 XWiki. All Rights Reserved.