org.apache.xerces.util
Class EntityResolverWrapper

java.lang.Object
  extended by org.apache.xerces.util.EntityResolverWrapper
All Implemented Interfaces:
XMLEntityResolver

public class EntityResolverWrapper
extends java.lang.Object
implements XMLEntityResolver

This class wraps a SAX entity resolver in an XNI entity resolver.

Version:
$Id: EntityResolverWrapper.java 447241 2006-09-18 05:12:57Z mrglavas $
Author:
Andy Clark, IBM
See Also:
EntityResolver

Constructor Summary
EntityResolverWrapper()
          Default constructor.
EntityResolverWrapper(EntityResolver entityResolver)
          Wraps the specified SAX entity resolver.
 
Method Summary
 EntityResolver getEntityResolver()
          Returns the SAX entity resolver.
 XMLInputSource resolveEntity(XMLResourceIdentifier resourceIdentifier)
          Resolves an external parsed entity.
 void setEntityResolver(EntityResolver entityResolver)
          Sets the SAX entity resolver.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityResolverWrapper

public EntityResolverWrapper()
Default constructor.


EntityResolverWrapper

public EntityResolverWrapper(EntityResolver entityResolver)
Wraps the specified SAX entity resolver.

Method Detail

setEntityResolver

public void setEntityResolver(EntityResolver entityResolver)
Sets the SAX entity resolver.


getEntityResolver

public EntityResolver getEntityResolver()
Returns the SAX entity resolver.


resolveEntity

public XMLInputSource resolveEntity(XMLResourceIdentifier resourceIdentifier)
                             throws XNIException,
                                    java.io.IOException
Resolves an external parsed entity. If the entity cannot be resolved, this method should return null.

Specified by:
resolveEntity in interface XMLEntityResolver
Parameters:
resourceIdentifier - contains the physical co-ordinates of the resource to be resolved
Throws:
XNIException - Thrown on general error.
java.io.IOException - Thrown if resolved entity stream cannot be opened or some other i/o error occurs.
See Also:
XMLResourceIdentifier