Documentation of 'org.spaceroots.rkcheck.EmbeddedCatalogResolver' Java class
EmbeddedCatalogResolver
org.spaceroots.rkcheck

Class EmbeddedCatalogResolver

  • All Implemented Interfaces:
    org.xml.sax.EntityResolver


    public class EmbeddedCatalogResolver
    extends java.lang.Object
    implements org.xml.sax.EntityResolver
    This class implements a resolver for external entities that are cached locally in the same jar file as the application.
    • Constructor Summary

      Constructors 
      Constructor and Description
      EmbeddedCatalogResolver(java.lang.String catalog, javax.xml.parsers.DocumentBuilder builder)
      Simple constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String getResourceName(java.lang.String publicId)
      Get the resource associated with a public identifier
      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

      • EmbeddedCatalogResolver

        public EmbeddedCatalogResolver(java.lang.String catalog,
                                       javax.xml.parsers.DocumentBuilder builder)
        Simple constructor. Build an empty resolver.
        Parameters:
        catalog - catalog path (inside the jar)
        builder - document builder (as a side effect, the builder will use the instance as its entity resolver)
    • Method Detail

      • getResourceName

        public java.lang.String getResourceName(java.lang.String publicId)
                                         throws java.io.IOException,
                                                org.xml.sax.SAXException
        Get the resource associated with a public identifier
        Parameters:
        publicId - public identifier
        Returns:
        the resource name or null if the identifier is unknown
        Throws:
        java.io.IOException - if parsing the catalog throws one
        org.xml.sax.SAXException - if parsing the catalog throws one
      • resolveEntity

        public org.xml.sax.InputSource resolveEntity(java.lang.String publicId,
                                                     java.lang.String systemId)
                                              throws org.xml.sax.SAXException
        Specified by:
        resolveEntity in interface org.xml.sax.EntityResolver
        Throws:
        org.xml.sax.SAXException

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.