org.apache.avalon.phoenix.tools.configuration
Class DTDResolver

java.lang.Object
  |
  +--org.apache.avalon.phoenix.tools.configuration.DTDResolver
All Implemented Interfaces:
EntityResolver

public class DTDResolver
extends Object
implements EntityResolver

A Class to help to resolve Entitys for items such as DTDs or Schemas.

Version:
$Revision: 1.7 $ $Date: 2002/08/06 11:57:42 $
Author:
Peter Donald

Constructor Summary
DTDResolver(DTDInfo[] dtdInfos, ClassLoader classLoader)
          Construct a resolver using specified DTDInfos where resources are loaded from specified ClassLoader.
 
Method Summary
 InputSource resolveEntity(String publicId, String systemId)
          Resolve an entity in the XML file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DTDResolver

public DTDResolver(DTDInfo[] dtdInfos,
                   ClassLoader classLoader)
Construct a resolver using specified DTDInfos where resources are loaded from specified ClassLoader.
Method Detail

resolveEntity

public InputSource resolveEntity(String publicId,
                                 String systemId)
                          throws IOException,
                                 SAXException
Resolve an entity in the XML file. Called by parser to resolve DTDs.
Specified by:
resolveEntity in interface EntityResolver


Copyright © 2001 Apache Jakarta Project. All Rights Reserved.