Class 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 loader

    The 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).

    • 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)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CatalogLoaderResolver

        public CatalogLoaderResolver()
    • 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 interface org.xml.sax.EntityResolver
        Throws:
        org.xml.sax.SAXException
        java.io.IOException