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.EntityResolverAn 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).
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.Stringcatalog10dtdprivate static java.lang.Stringcatalog11dtd
-
Constructor Summary
Constructors Constructor Description CatalogLoaderResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.xml.sax.InputSourceresolveEntity(java.lang.String publicId, java.lang.String systemId)
-
-
-
Field Detail
-
catalog10dtd
private static final java.lang.String catalog10dtd
- See Also:
- Constant Field Values
-
catalog11dtd
private static final java.lang.String catalog11dtd
- See Also:
- Constant Field Values
-
-
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:
resolveEntityin interfaceorg.xml.sax.EntityResolver- Throws:
org.xml.sax.SAXExceptionjava.io.IOException
-
-