1 26 27 29 package de.nava.informa.utils; 30 31 import java.io.StringReader ; 32 import org.xml.sax.EntityResolver ; 33 import org.xml.sax.InputSource ; 34 import org.apache.commons.logging.Log; 35 import org.apache.commons.logging.LogFactory; 36 37 43 public class NoOpEntityResolver implements EntityResolver { 44 45 private static Log logger = LogFactory.getLog(NoOpEntityResolver.class); 46 47 public InputSource resolveEntity(String publicId, String systemId) { 48 if (logger.isDebugEnabled()) { 49 logger.debug("publicId: " + publicId + 50 ", systemId: " + systemId); 51 } 52 return new InputSource (new StringReader ("")); 53 } 54 55 } 56 | Popular Tags |