Package org.xmlresolver.loaders
Class CatalogLoaderResolver
- java.lang.Object
-
- org.xmlresolver.loaders.CatalogLoaderResolver
-
- All Implemented Interfaces:
org.xml.sax.EntityResolver
public class CatalogLoaderResolver extends java.lang.Object implements org.xml.sax.EntityResolver
An entity resolver for the catalog loaderThe only entities that this resolver needs to resolve are the DTDs for the catalogs. (It isn't practical to use the CatalogResolver for these because it would create an infinite loop.)
This resolver handles the OASIS Open 1.0 and 1.1 catalog public and system identifiers. If you have a custom DTD for your catalogs, you'll have to make sure that it will resolve correctly at runtime or replace this resolver with one that handles your custom DTD(s).
-
-
Constructor Summary
Constructors Constructor Description CatalogLoaderResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.xml.sax.InputSource
resolveEntity(java.lang.String publicId, java.lang.String systemId)
-
-
-
Method Detail
-
resolveEntity
public org.xml.sax.InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId) throws org.xml.sax.SAXException, java.io.IOException
- Specified by:
resolveEntity
in interfaceorg.xml.sax.EntityResolver
- Throws:
org.xml.sax.SAXException
java.io.IOException
-
-