Clover coverage report - JBind Project
Coverage timestamp: Fr Mai 28 2004 11:17:36 CEST
file stats: LOC: 39   Methods: 2
NCLOC: 22   Classes: 1
This license of Clover is provided to support the development of JBind only. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover.
 
 Source file Conditionals Statements Methods TOTAL
SaxHandler.java 0% 0% 0% 0%
 1   
 /*
 2   
  * JBind
 3   
  *
 4   
  * Copyright (c) by Stefan Wachter. All rights reserved.
 5   
  *
 6   
  * Usage, modification, and redistribution is subject to license terms that are
 7   
  * available at 'http://www.jbind.org'. The JBind license is like the
 8   
  * 'Apache Software License V 1.1'.
 9   
  */
 10   
 package org.jbind.xml.base;
 11   
 
 12   
 import java.io.IOException;
 13   
 
 14   
 import org.xml.sax.EntityResolver;
 15   
 import org.xml.sax.InputSource;
 16   
 import org.xml.sax.SAXException;
 17   
 import org.xml.sax.helpers.DefaultHandler;
 18   
 
 19   
 public class SaxHandler extends DefaultHandler {
 20   
 
 21   
   private EntityResolver myResolver;
 22   
 
 23  0
   public SaxHandler(EntityResolver aResolver) {
 24  0
     myResolver = aResolver;
 25   
   }
 26   
 
 27  0
   public InputSource resolveEntity(String aPublicId, String aSystemId) throws SAXException {
 28  0
     if (null == myResolver) {
 29  0
       return null;
 30   
     }
 31  0
     try {
 32  0
       return myResolver.resolveEntity(aPublicId, aSystemId);
 33   
     } catch (IOException e) {
 34  0
       throw new SAXException(e);
 35   
     }
 36   
   }
 37   
 
 38   
 }
 39