FreeHEP API
Version current

org.freehep.xml.util
Class ClassPathEntityResolver

java.lang.Object
  extended byorg.freehep.xml.util.ClassPathEntityResolver
All Implemented Interfaces:
EntityResolver

public class ClassPathEntityResolver
extends Object
implements 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.5 2003/10/06 03:59:12 tonyj Exp $
Author:
Tony Johnson (tonyj@slac.stanford.edu)
Source Code:
ClassPathEntityResolver.java

Constructor Summary
ClassPathEntityResolver(String DTDName, Class root)
          Constructor
 
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

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

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.