FreeHEP API
Version v1.1

org.freehep.xml.util
Class ClassPathEntityResolver

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

public class ClassPathEntityResolver
extends 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

Version:
$Id: ClassPathEntityResolver.java,v 1.4 2002/06/12 23:15:16 duns Exp $
Author:
Tony Johnson (tonyj@slac.stanford.edu)

Constructor Summary
ClassPathEntityResolver(String DTDName, Class root)
          Constructor
 
Method Summary
 org.xml.sax.InputSource resolveEntity(String publicId, 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(String DTDName,
                               Class root)
Constructor

Parameters:
DTDName - The DTDName to resolve
root - A Class in the same package as the DTD
Method Detail

resolveEntity

public org.xml.sax.InputSource resolveEntity(String publicId,
                                             String systemId)
Implementation of resolveEntity method

Specified by:
resolveEntity in interface org.xml.sax.EntityResolver

FreeHEP API
Version v1.1

Copyright © 2000-2002 FreeHEP, All Rights Reserved.