Class URIInputStreamableXMLEntityResolver

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

    @Deprecated
    public class URIInputStreamableXMLEntityResolver
    extends DefaultEntityResolver
    Deprecated.
    An entity resolver that retrieves XML entities from a URIInputStreamable. This implementation looks up and returns special predefined entities locally instead of actually retrieving them from the URIInputStreamable. This implementation searches for resource files within this package that have the same name as the public ID, with illegal characters replaced with "^XX", where "XX" is a hex code. For example, the entity public ID "-//W3C//DTD XHTML 1.1//EN" would be stored in this package under the filename "-^2F^2FW3C^2F^2FDTD XHTML 1.1^2F^2FEN". This is a singleton class that cannot be publicly instantiated.
    Author:
    Garret Wilson
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      protected com.globalmentor.io.URIInputStreamable getSource()
      Deprecated.
       
      org.xml.sax.InputSource resolveEntity​(java.lang.String publicID, java.lang.String systemID)
      Deprecated.
      Resolves the given entity based upon its public and system IDs.
      • Methods inherited from class java.lang.Object

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

      • URIInputStreamableXMLEntityResolver

        public URIInputStreamableXMLEntityResolver​(com.globalmentor.io.URIInputStreamable source)
        Deprecated.
        Source constructor.
        Parameters:
        source - The source of the data.
        Throws:
        java.lang.NullPointerException - if the given source is null.
    • Method Detail

      • getSource

        protected com.globalmentor.io.URIInputStreamable getSource()
        Deprecated.
        Returns:
        The source of the data.
      • resolveEntity

        public org.xml.sax.InputSource resolveEntity​(java.lang.String publicID,
                                                     java.lang.String systemID)
                                              throws org.xml.sax.SAXException,
                                                     java.io.IOException
        Deprecated.
        Resolves the given entity based upon its public and system IDs.

        This method delegates to the source URIInputStreamable if the parent version cannot resolve the entity.

        Specified by:
        resolveEntity in interface org.xml.sax.EntityResolver
        Overrides:
        resolveEntity in class DefaultEntityResolver
        Parameters:
        publicID - The entity putlic ID, or null if none was given.
        systemID - The entity system ID.
        Returns:
        An input source describing the entity, or null to request that the parser open a regular URI connection to the system identifier.
        Throws:
        org.xml.sax.SAXException
        java.io.IOException