Class DefaultEntityResolver

  • All Implemented Interfaces:
    EntityResolver

    public class DefaultEntityResolver
    extends Object
    implements EntityResolver
    Helper class that implement a default EntityResolver.
    • Constructor Detail

      • DefaultEntityResolver

        public DefaultEntityResolver()
    • Method Detail

      • resolveEntity

        public InputSource resolveEntity​(String publicID,
                                         String systemID)
        Resolves a given entity to the input source for an empty XML document.
        Specified by:
        resolveEntity in interface EntityResolver
        Parameters:
        publicID - The public ID of the entity.
        systemID - The system ID of the entity.
        Returns:
        The input source for the resolved entity. This default implementation always returns the input source for an empty XML document.