org.apache.xerces.util
Class DOMEntityResolverWrapper

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

public class DOMEntityResolverWrapper
extends java.lang.Object
implements XMLEntityResolver

This class wraps DOM entity resolver to XNI entity resolver.

Version:
$Id: DOMEntityResolverWrapper.java 447241 2006-09-18 05:12:57Z mrglavas $
Author:
Gopal Sharma, SUN MicroSystems Inc., Elena Litani, IBM, Ramesh Mandava, Sun Microsystems
See Also:
LSResourceResolver

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

Constructor Detail

DOMEntityResolverWrapper

public DOMEntityResolverWrapper()
Default constructor.


DOMEntityResolverWrapper

public DOMEntityResolverWrapper(LSResourceResolver entityResolver)
Wraps the specified DOM entity resolver.

Method Detail

setEntityResolver

public void setEntityResolver(LSResourceResolver entityResolver)
Sets the DOM entity resolver.


getEntityResolver

public LSResourceResolver getEntityResolver()
Returns the DOM 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 - description of the resource to be revsoved
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