Class XMLEntityResolver

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

    public class XMLEntityResolver
    extends java.lang.Object
    implements org.xml.sax.EntityResolver
    Entity resolver for XML parsing. Relies on the application class loader to get resources (typically DTD specification files embedded in CLIF's runtime jar). Understands "classpath:", "file://" and empty prefixes. Handles cases where the XML parser adds current working directory to relative paths.
    Author:
    Bruno Dillenseger
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String CLASSPATH_SCHEME  
      static java.lang.String FILE_SCHEME  
    • 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

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

      • XMLEntityResolver

        public XMLEntityResolver()
    • Method Detail

      • resolveEntity

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