org.freehep.xml.util
Class ClassPathEntityResolver
java.lang.Object
org.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClassPathEntityResolver
public ClassPathEntityResolver(String DTDName,
Class root)
- Constructor
- Parameters:
DTDName
- The DTDName to resolveroot
- A Class in the same package as the DTD
resolveEntity
public InputSource resolveEntity(String publicId,
String systemId)
throws SAXException
- Specified by:
resolveEntity
in interface EntityResolver
- Throws:
SAXException
Copyright © 2000-2004 FreeHEP, All Rights Reserved.