Package com.atlassian.confluence.xml
Class XhtmlEntityResolver
java.lang.Object
com.atlassian.confluence.xml.XhtmlEntityResolver
- All Implemented Interfaces:
XMLEntityResolver
,XMLResolver
,EntityResolver
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.since 5.8.@Nullable InputSource
resolveEntity
(String publicId, String systemId) @Nullable Object
resolveEntity
(String publicID, String systemID, String baseURI, String namespace)
-
Constructor Details
-
XhtmlEntityResolver
public XhtmlEntityResolver()
-
-
Method Details
-
resolveEntity
public @Nullable Object resolveEntity(String publicID, String systemID, String baseURI, String namespace) throws XMLStreamException - Specified by:
resolveEntity
in interfaceXMLResolver
- Throws:
XMLStreamException
-
resolveEntity
public @Nullable InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException - Specified by:
resolveEntity
in interfaceEntityResolver
- Throws:
SAXException
IOException
-
createDTD
Deprecated.since 5.8. Use the the following DTD declaration instead: <!DOCTYPE content-root SYSTEM "xhtml.ent">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 interfaceXMLEntityResolver
- Returns:
- a String suitable for use in a DTD declaring the entities handled by this resolver.
-