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

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

public class DTDResolver
extends java.lang.Object
implements org.xml.sax.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, java.lang.ClassLoader classLoader)
          Construct a resolver using specified DTDInfos where resources are loaded from specified ClassLoader.
 
Method Summary
 org.xml.sax.InputSource resolveEntity(java.lang.String publicId, java.lang.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,
                   java.lang.ClassLoader classLoader)
Construct a resolver using specified DTDInfos where resources are loaded from specified ClassLoader.

Method Detail

resolveEntity

public org.xml.sax.InputSource resolveEntity(java.lang.String publicId,
                                             java.lang.String systemId)
                                      throws java.io.IOException,
                                             org.xml.sax.SAXException
Resolve an entity in the XML file. Called by parser to resolve DTDs.

Specified by:
resolveEntity in interface org.xml.sax.EntityResolver
java.io.IOException
org.xml.sax.SAXException


Copyright © 2001 Apache Jakarta Project. All Rights Reserved.