org.tinyjee.maven.dim.utils
Class XhtmlEntityResolver

java.lang.Object
  extended by 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

Constructor Summary
XhtmlEntityResolver()
           
 
Method Summary
 InputSource resolveEntity(String publicId, String systemId)
           
 
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 InputSource resolveEntity(String publicId,
                                 String systemId)
                          throws SAXException,
                                 IOException
Specified by:
resolveEntity in interface EntityResolver
Throws:
SAXException
IOException