Content Pipeline Guide > SAX2 Filter Interfaces > EntityResolver2
  
EntityResolver2
The EntityResolver2 is an extended interface for mapping external entity references to input sources and for providing missing external subsets.
If a SAX application needs to implement customized handling for external entities, some filters must implement the EntityResolver2 interface. The Pipeline element's entityresolver2 attribute must name this filter if it is to act as an EntityResolver2 resource for the pipeline.
package org.xml.sax;
import java.io.IOException;
public interface EntityResolver2 {
public InputSource getExternalSubset
(java.lang.String name,
java.lang.String baseURI)
throws SAXException,
java.io.IOException;
public InputSource resolveEntity
(java.lang.String name,
java.lang.String publicId,
java.lang.String baseURI,
java.lang.String systemId)
throws SAXException,
java.io.IOException;
}