package com.l7tech.common.io;

import com.l7tech.util.SAXParsingCompleteException;
import java.util.Set;
import org.xml.sax.SAXException;
import org.xml.sax.ext.DefaultHandler2;

class an extends DefaultHandler2 {
   final Set val$references;

   an(Set var1) {
      this.val$references = var1;
   }

   @Override
   public void externalEntityDecl(String var1, String var2, String var3) throws SAXException {
      try {
         if (this.val$references != null) {
            this.val$references.add(new DtdUtils.EntityKey(var2, var3));
         }
      } catch (SAXException var4) {
         throw a(var4);
      }
   }

   @Override
   public void notationDecl(String var1, String var2, String var3) throws SAXException {
      try {
         if (this.val$references != null) {
            this.val$references.add(new DtdUtils.EntityKey(var2, var3));
         }
      } catch (SAXException var4) {
         throw a(var4);
      }
   }

   @Override
   public void endDTD() throws SAXException {
      throw new SAXParsingCompleteException();
   }

   private static SAXException a(SAXException var0) {
      return var0;
   }
}
