## org.apache.xerces.util
Class DOMEntityResolverWrapper

    java.lang.Object
      |
      +--org.apache.xerces.util.DOMEntityResolverWrapper

All Implemented Interfaces:
  org.apache.xerces.xni.parser.XMLEntityResolver

public class DOMEntityResolverWrapper
extends java.lang.Object
implements org.apache.xerces.xni.parser.XMLEntityResolver

This class wraps DOM entity resolver to XNI entity resolver.

Version:
  $Id: DOMEntityResolverWrapper.java,v 1.5 2002/08/09 15:18:19 neilg Exp $
Author:
  Gopal Sharma, SUN MicroSystems Inc., Elena Litani, IBM
See Also:
  `DOMEntityResolver`

Field Summary
`protected org.w3c.dom.ls.DOMEntityResolver` `fEntityResolver` The DOM entity resolver.

Constructor Summary
`DOMEntityResolverWrapper()` Default constructor.
`DOMEntityResolverWrapper(org.w3c.dom.ls.DOMEntityResolver entityResolver)` Wraps the specified DOM entity resolver.

Method Summary
`org.w3c.dom.ls.DOMEntityResolver` `getEntityResolver()` Returns the DOM entity resolver.
`org.apache.xerces.xni.parser.XMLInputSource` `resolveEntity(org.apache.xerces.xni.XMLResourceIdentifier resourceIdentifier)` Resolves an external parsed entity.
`void` `setEntityResolver(org.w3c.dom.ls.DOMEntityResolver entityResolver)` Sets the DOM 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.w3c.dom.ls.DOMEntityResolver fEntityResolver

  The DOM entity resolver.

Constructor Detail

### DOMEntityResolverWrapper

    public DOMEntityResolverWrapper()

  Default constructor.

### DOMEntityResolverWrapper

    public DOMEntityResolverWrapper(org.w3c.dom.ls.DOMEntityResolver entityResolver)

  Wraps the specified DOM entity resolver.

Method Detail

### setEntityResolver

    public void setEntityResolver(org.w3c.dom.ls.DOMEntityResolver entityResolver)

  Sets the DOM entity resolver.

### getEntityResolver

    public org.w3c.dom.ls.DOMEntityResolver getEntityResolver()

  Returns the DOM entity resolver.

### resolveEntity

    public org.apache.xerces.xni.parser.XMLInputSource resolveEntity(org.apache.xerces.xni.XMLResourceIdentifier resourceIdentifier)
                                                              throws org.apache.xerces.xni.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 `org.apache.xerces.xni.parser.XMLEntityResolver`
  Parameters:
    `resourceIdentifier` - description of the resource to be revsoved
  Throws:
    `org.apache.xerces.xni.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-2003 Apache XML Project. All Rights Reserved.