com.atlassian.confluence.xml
Class XhtmlEntityResolver

java.lang.Object
  extended by com.atlassian.confluence.xml.XhtmlEntityResolver
All Implemented Interfaces:
XMLEntityResolver, XMLResolver, EntityResolver

public class XhtmlEntityResolver
extends Object
implements XMLEntityResolver

An entity resolver for XHTML entities which will read the entities from the classpath (not the web) and is suitable for use in both STaX and SAX based parsing of XHTML. This resolver caches the entity definition files for faster access.


Constructor Summary
XhtmlEntityResolver()
           
 
Method Summary
 String createDTD()
          Return definitions suitable for use in an XML DTD which will be compatible with the entities resolved by this XMLEntityResolver.
 InputSource resolveEntity(String publicId, String systemId)
           
 Object resolveEntity(String publicID, String systemID, String baseURI, String namespace)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XhtmlEntityResolver

public XhtmlEntityResolver()
Method Detail

resolveEntity

public Object resolveEntity(String publicID,
                            String systemID,
                            String baseURI,
                            String namespace)
                     throws XMLStreamException
Specified by:
resolveEntity in interface XMLResolver
Throws:
XMLStreamException

resolveEntity

public InputSource resolveEntity(String publicId,
                                 String systemId)
                          throws SAXException,
                                 IOException
Specified by:
resolveEntity in interface EntityResolver
Throws:
SAXException
IOException

createDTD

public String createDTD()
Description copied from interface: XMLEntityResolver
Return definitions suitable for use in an XML DTD which will be compatible with the entities resolved by this XMLEntityResolver.

Specified by:
createDTD in interface XMLEntityResolver
Returns:
a String suitable for use in a DTD declaring the entities handled by this resolver.


Copyright © 2003-2011 Atlassian. All Rights Reserved.