com.ibatis.sqlmap.engine.builder.xml
Class SqlMapClasspathEntityResolver

java.lang.Object
  extended bycom.ibatis.sqlmap.engine.builder.xml.SqlMapClasspathEntityResolver
All Implemented Interfaces:
org.xml.sax.EntityResolver

public class SqlMapClasspathEntityResolver
extends java.lang.Object
implements org.xml.sax.EntityResolver

Offline entity resolver for the iBATIS DTDs


Constructor Summary
SqlMapClasspathEntityResolver()
           
 
Method Summary
 org.xml.sax.InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId)
          Converts a public DTD into a local one
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SqlMapClasspathEntityResolver

public SqlMapClasspathEntityResolver()
Method Detail

resolveEntity

public org.xml.sax.InputSource resolveEntity(java.lang.String publicId,
                                             java.lang.String systemId)
                                      throws org.xml.sax.SAXException
Converts a public DTD into a local one

Specified by:
resolveEntity in interface org.xml.sax.EntityResolver
Parameters:
publicId - Unused but required by EntityResolver interface
systemId - The DTD that is being requested
Returns:
The InputSource for the DTD
Throws:
org.xml.sax.SAXException - If anything goes wrong