Top Description Methods
org.apache.xerces.xni.parser

public Interface XMLEntityResolver

Known Direct Subinterfaces
org.apache.xerces.impl.ExternalSubsetResolver
Known Direct Implementers
org.apache.xerces.impl.XMLEntityManager, org.apache.xerces.parsers.SecureProcessingConfiguration.ExternalEntityMonitor, org.apache.xerces.util.DOMEntityResolverWrapper, org.apache.xerces.util.EntityResolverWrapper, org.apache.xerces.util.XMLCatalogResolver
Imports
java.io.IOException, org.apache.xerces.xni.XMLResourceIdentifier, .XNIException

This interface is used to resolve external parsed entities. The application can register an object that implements this interface with the parser configuration in order to intercept entities and resolve them explicitly. If the registered entity resolver cannot resolve the entity, it should return null so that the parser will try to resolve the entity using a default mechanism.
Author
Andy Clark, IBM
Version
$Id: XMLEntityResolver.java 699892 2008-09-28 21:08:27Z mrglavas $
See Also
XMLParserConfiguration

Method Summary

Modifier and TypeMethod and Description
public XMLInputSource
resolveEntity(XMLResourceIdentifier
location of the XML resource to resolve
resourceIdentifier
)

Resolves an external parsed entity.

Method Detail

resolveEntityback to summary
public XMLInputSource resolveEntity(XMLResourceIdentifier resourceIdentifier) throws XNIException, IOException

Resolves an external parsed entity. If the entity cannot be resolved, this method should return null.

Parameters
resourceIdentifier:XMLResourceIdentifier

location of the XML resource to resolve

Exceptions
XNIException:
Thrown on general error.
IOException:
Thrown if resolved entity stream cannot be opened or some other i/o error occurs.
See Also
org.apache.xerces.xni.XMLResourceIdentifier