jas.util.xml
Class ClassPathEntityResolver

java.lang.Object
  |
  +--jas.util.xml.ClassPathEntityResolver
All Implemented Interfaces:
org.xml.sax.EntityResolver

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

An implementation of an EntityResolver which can be used to locate DTD files located on the current java class path


Constructor Summary
ClassPathEntityResolver(java.lang.String DTDName, java.lang.Class root)
          Constructor
 
Method Summary
 org.xml.sax.InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId)
          Implementation of resolveEntity method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassPathEntityResolver

public ClassPathEntityResolver(java.lang.String DTDName,
                               java.lang.Class root)
Constructor
Parameters:
DTDName - The DTDName to resolve
Method Detail

resolveEntity

public org.xml.sax.InputSource resolveEntity(java.lang.String publicId,
                                             java.lang.String systemId)
Implementation of resolveEntity method
Specified by:
resolveEntity in interface org.xml.sax.EntityResolver