Class MSTRLayoutParser.ParserEntityResolver

  • All Implemented Interfaces:
    org.xml.sax.EntityResolver
    Enclosing class:
    MSTRLayoutParser

    protected class MSTRLayoutParser.ParserEntityResolver
    extends java.lang.Object
    implements org.xml.sax.EntityResolver
    This is the default implementation of the EntityResolver object.
    Since:
    MicroStrategy Web 8.0.0
    • Constructor Summary

      Constructors 
      Constructor Description
      ParserEntityResolver​(java.lang.String entitySearchDir)
      Constructor for this class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.util.HashMap getEntityMap()
      Returns a HashMap that maps file names to their full path where they can be found.
      org.xml.sax.InputSource resolveEntity​(java.lang.String publicId, java.lang.String systemId)
      Returns the InputSource for the referenced external entity.
      • Methods inherited from class java.lang.Object

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

      • ParserEntityResolver

        public ParserEntityResolver​(java.lang.String entitySearchDir)
        Constructor for this class.
        Parameters:
        entitySearchDir - The directory to use for searching external DTDs.
    • 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
        Returns the InputSource for the referenced external entity. If the System ID begins as a file reference ("file://") and the basename is XHTML1.1 or MicroStrategy Layout DTD, then it is mapped using the entity map (see getEntityMap()). If not in the map, then a blank InputSource is returned (after setting the public and system IDs).
        Specified by:
        resolveEntity in interface org.xml.sax.EntityResolver
        Parameters:
        publicId - The public ID of the entity.
        systemId - The system ID of the entity.
        Returns:
        The InputSource to use for specified entity.
        Throws:
        org.xml.sax.SAXException
        java.io.IOException
      • getEntityMap

        protected java.util.HashMap getEntityMap()
        Returns a HashMap that maps file names to their full path where they can be found.
        Returns:
        The HashMap object which controls this EntityResolver.