Interface XMLEntityResolver
-
- All Known Subinterfaces:
ExternalSubsetResolver
- All Known Implementing Classes:
DOMEntityResolverWrapper
,EntityResolver2Wrapper
,EntityResolverWrapper
,XMLEntityManager
public interface XMLEntityResolver
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 returnnull
so that the parser will try to resolve the entity using a default mechanism.- Version:
- $Id$
- Author:
- Andy Clark, IBM
- See Also:
XMLParserConfiguration
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description XMLInputSource
resolveEntity(XMLResourceIdentifier resourceIdentifier)
Resolves an external parsed entity.
-
-
-
Method Detail
-
resolveEntity
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
- location of the XML resource to resolve- Throws:
XNIException
- Thrown on general error.IOException
- Thrown if resolved entity stream cannot be opened or some other i/o error occurs.- See Also:
XMLResourceIdentifier
-
-