Code example for DTDHandler

Methods: unparsedEntityDecl

0
        /** {@inheritDoc} */ 
        @Override 
        public void unparsedEntityDecl(String name, String publicId, String systemId, String notationName) throws SAXException {
            // If we have an explicit DTD handler, delegate to it 
            if (dtdHandler != null) {
                dtdHandler.unparsedEntityDecl(name, publicId, systemId, notationName);
            } else { 
                super.unparsedEntityDecl(name, publicId, systemId, notationName);
            } 
        } 
 
        /** {@inheritDoc} */ 
        @Override 
        public InputSource resolveEntity(String publicId, String systemId) throws SAXException {
            // If we have an explicit entity resolver, delegate to it 
            if (entityResolver != null) {
                try { 
                    return entityResolver.resolveEntity(publicId, systemId);
                } 
                catch (IOException e) {
                    throw new SAXException(e);