BEA Systems, Inc.

WebLogic Server 8.1 API Reference

weblogic.apache.xerces.util
Class EntityResolverWrapper

java.lang.Object
  |
  +--weblogic.apache.xerces.util.EntityResolverWrapper

public class EntityResolverWrapper
extends java.lang.Object
implements XMLEntityResolver

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

See Also:
EntityResolver

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

Field Detail

fEntityResolver

protected org.xml.sax.EntityResolver fEntityResolver
The SAX entity resolver.
Constructor Detail

EntityResolverWrapper

public EntityResolverWrapper()
Default constructor.

EntityResolverWrapper

public EntityResolverWrapper(org.xml.sax.EntityResolver entityResolver)
Wraps the specified SAX entity resolver.
Method Detail

setEntityResolver

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


getEntityResolver

public org.xml.sax.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.

Documentation is available at
http://download.oracle.com/docs/cd/E13222_01/wls/docs81