Class EmptyXMLResolver

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

    public class EmptyXMLResolver
    extends java.lang.Object
    implements org.xml.sax.EntityResolver
    This resolver is used to prevent network lookups of DTD or XML schemas.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.xml.sax.InputSource resolveEntity​(java.lang.String arg0, java.lang.String arg1)
      Overwritten to return an empty entity.
      • Methods inherited from class java.lang.Object

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

      • EmptyXMLResolver

        public EmptyXMLResolver()
    • Method Detail

      • resolveEntity

        public org.xml.sax.InputSource resolveEntity​(java.lang.String arg0,
                                                     java.lang.String arg1)
                                              throws org.xml.sax.SAXException,
                                                     java.io.IOException
        Overwritten to return an empty entity.
        Specified by:
        resolveEntity in interface org.xml.sax.EntityResolver
        Throws:
        org.xml.sax.SAXException
        java.io.IOException
        See Also:
        EntityResolver.resolveEntity(java.lang.String, java.lang.String)