Package jmri.util

Class JmriLocalEntityResolver

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

    public class JmriLocalEntityResolver
    extends java.lang.Object
    implements org.xml.sax.EntityResolver
    Entity Resolver to locate JMRI DTDs in the local space.

    For historical reasons, JMRI xml files might have DTD definitions of three forms:

    1. SYSTEM "../DTD/decoder-config.dtd"
    2. SYSTEM "layout-config.dtd"
    3. SYSTEM "http://jmri.sourceforce.net/xml/DTD/layout-config.dtd"
    Only the last of these is preferred now. The first two refer to local files within the JMRI distributions in the xml/DTD directory.
    • 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
    • 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