jas.util.xml
Class ClassPathEntityResolver

java.lang.Object
  extended by jas.util.xml.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


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

resolveEntity

public InputSource resolveEntity(String publicId,
                                 String systemId)
Implementation of resolveEntity method

Specified by:
resolveEntity in interface EntityResolver


Copyright © 2000-2009 FreeHEP. All Rights Reserved.