Code example for EntityResolver

Methods: resolveEntity

0
    this.resolver = resolver;
    dependencies = new HashSet();
  } 
 
  public InputSource resolveEntity(String public_id, String system_id) throws SAXException,IOException {
    InputSource input_source = resolver.resolveEntity(public_id,system_id);
    dependencies.add(input_source);
    getLogger().debug("Dependency: "+input_source.getSystemId());
    return input_source;
  } 
 
  public Set getDependencies() {
    return Collections.unmodifiableSet(dependencies);
  } 
 
} 
Experience pair programming with AI  Get Codota for Java