Class IgnoreDTDEntityResolver

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

    public class IgnoreDTDEntityResolver
    extends java.lang.Object
    implements org.xml.sax.EntityResolver
    This class is used to ignore XML DTD entities. Without it XML parsing will fail if DTD could not be found in specified location.
    • 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
    • Constructor Detail

      • IgnoreDTDEntityResolver

        public IgnoreDTDEntityResolver()
    • 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
        Specified by:
        resolveEntity in interface org.xml.sax.EntityResolver
        Throws:
        org.xml.sax.SAXException
        java.io.IOException