com.atlassian.confluence.xml
Class SafeXmlParserFactory

java.lang.Object
  extended by com.atlassian.confluence.xml.SafeXmlParserFactory

public class SafeXmlParserFactory
extends Object

Central point to create XML parsers with uniform safe configurations.


Field Summary
static EntityResolver EMPTY_ENTITY_RESOLVER
           
 
Constructor Summary
SafeXmlParserFactory()
           
 
Method Summary
static DocumentBuilderFactory createDocumentBuilderFactory()
           
static XMLReader createNamespaceAwareXmlReader()
           
static org.jdom.input.SAXBuilder createSAXBuilder()
           
static org.dom4j.io.SAXReader createSaxReader()
           
static XMLReader createXmlReader()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY_ENTITY_RESOLVER

public static final EntityResolver EMPTY_ENTITY_RESOLVER
Constructor Detail

SafeXmlParserFactory

public SafeXmlParserFactory()
Method Detail

createDocumentBuilderFactory

public static DocumentBuilderFactory createDocumentBuilderFactory()
                                                           throws ParserConfigurationException
Throws:
ParserConfigurationException

createXmlReader

public static XMLReader createXmlReader()
                                 throws SAXException,
                                        ParserConfigurationException
Throws:
SAXException
ParserConfigurationException

createNamespaceAwareXmlReader

public static XMLReader createNamespaceAwareXmlReader()
                                               throws SAXException,
                                                      ParserConfigurationException
Throws:
SAXException
ParserConfigurationException

createSaxReader

public static org.dom4j.io.SAXReader createSaxReader()
                                              throws SAXException,
                                                     ParserConfigurationException
Throws:
SAXException
ParserConfigurationException

createSAXBuilder

public static org.jdom.input.SAXBuilder createSAXBuilder()


Copyright © 2003-2012 Atlassian. All Rights Reserved.