org.tinyjee.maven.dim.utils
Class XhtmlEntityResolver
java.lang.Object
org.tinyjee.maven.dim.utils.XhtmlEntityResolver
- All Implemented Interfaces:
- EntityResolver
public class XhtmlEntityResolver
- extends Object
- implements EntityResolver
This is a simple DTD resolver that attempts to load DTDs from the classpath first
before delegating to a web query.
It is doing so by translating any HTTP systemIds to local classpath URLs using the
common translation rule between HTTP-url and CP url.
- Author:
- Juergen_Kellerer, 2011-09-28
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XhtmlEntityResolver
public XhtmlEntityResolver()
resolveEntity
public InputSource resolveEntity(String publicId,
String systemId)
throws SAXException,
IOException
- Specified by:
resolveEntity
in interface EntityResolver
- Throws:
SAXException
IOException