Content Pipeline Guide > SAX2 Filter Interfaces > EntityResolver
  
EntityResolver
The EntityResolver is a basic interface for resolving entities. If a SAX application needs to implement customized handling for external entities, some filters must implement this interface.
The Pipeline element’s entityresolver attribute must name this filter if it is to act as an EntityResolver resource for the pipeline.
The EntityResolver interface is only called by parsers that need application-specific directions for resolving entities. The value of the entity is returned to the parser by the resolveEntity method as an org.xml.sax.InputSource object that wraps an java.io.InputStream, java.io.Reader or system file.
package org.xml.sax;
import java.io.IOException;
public interface EntityResolver {
public abstract InputSource resolveEntity
(String publicId, String systemId)
throws SAXException, IOException;
}