com.atlassian.confluence.xml
Class XhtmlEntityResolver
java.lang.Object
com.atlassian.confluence.xml.XhtmlEntityResolver
- All Implemented Interfaces:
- XMLEntityResolver, javax.xml.stream.XMLResolver, org.xml.sax.EntityResolver
public class XhtmlEntityResolver
- extends java.lang.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.
Method Summary |
java.lang.String |
createDTD()
Return definitions suitable for use in an XML DTD which will be compatible with the entities resolved
by this XMLEntityResolver. |
org.xml.sax.InputSource |
resolveEntity(java.lang.String publicId,
java.lang.String systemId)
|
java.lang.Object |
resolveEntity(java.lang.String publicID,
java.lang.String systemID,
java.lang.String baseURI,
java.lang.String namespace)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XhtmlEntityResolver
public XhtmlEntityResolver()
resolveEntity
public java.lang.Object resolveEntity(java.lang.String publicID,
java.lang.String systemID,
java.lang.String baseURI,
java.lang.String namespace)
throws javax.xml.stream.XMLStreamException
- Specified by:
resolveEntity
in interface javax.xml.stream.XMLResolver
- Throws:
javax.xml.stream.XMLStreamException
resolveEntity
public org.xml.sax.InputSource resolveEntity(java.lang.String publicId,
java.lang.String systemId)
throws org.xml.sax.SAXException,
java.io.IOException
- Specified by:
resolveEntity
in interface org.xml.sax.EntityResolver
- Throws:
org.xml.sax.SAXException
java.io.IOException
createDTD
public java.lang.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-2013 Atlassian. All Rights Reserved.