org.apache.xerces.xni.parser
Interface XMLEntityResolver


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 return null so that the parser will try to resolve the entity using a default mechanism.

Version:
$Id: XMLEntityResolver.java,v 1.2 2001/08/23 00:35:37 lehors Exp $
Author:
Andy Clark, IBM
See Also:
XMLParserConfiguration

Method Summary
 XMLInputSource resolveEntity(java.lang.String publicId, java.lang.String systemId, java.lang.String baseSystemId)
          Resolves an external parsed entity.
 

Method Detail

resolveEntity

public XMLInputSource resolveEntity(java.lang.String publicId,
                                    java.lang.String systemId,
                                    java.lang.String baseSystemId)
                             throws XNIException,
                                    java.io.IOException
Resolves an external parsed entity. If the entity cannot be resolved, this method should return null.
Parameters:
publicId -  
systemId -  
baseSystemId - The base system identifier.
Throws:
XNIException - Thrown on general error.
java.io.IOException - Thrown if resolved entity stream cannot be opened or some other i/o error occurs.


Copyright © 1999-2001 Apache XML Project. All Rights Reserved.