Class DOMEntityResolverWrapper
- java.lang.Object
-
- org.smooks.engine.delivery.sax.ng.org.apache.xerces.util.DOMEntityResolverWrapper
-
- All Implemented Interfaces:
XMLEntityResolver
public class DOMEntityResolverWrapper extends Object implements XMLEntityResolver
This class wraps DOM entity resolver to XNI entity resolver.- Version:
- $Id$
- Author:
- Gopal Sharma, SUN MicroSystems Inc., Elena Litani, IBM, Ramesh Mandava, Sun Microsystems
- See Also:
LSResourceResolver
-
-
Field Summary
Fields Modifier and Type Field Description protected LSResourceResolver
fEntityResolver
The DOM entity resolver.
-
Constructor Summary
Constructors Constructor Description DOMEntityResolverWrapper()
Default constructor.DOMEntityResolverWrapper(LSResourceResolver entityResolver)
Wraps the specified DOM entity resolver.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Field Detail
-
fEntityResolver
protected LSResourceResolver fEntityResolver
The DOM entity resolver.
-
-
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, IOException
Resolves an external parsed entity. If the entity cannot be resolved, this method should return null.- Specified by:
resolveEntity
in interfaceXMLEntityResolver
- Parameters:
resourceIdentifier
- description of the resource to be resolved- Throws:
XNIException
- Thrown on general error.IOException
- Thrown if resolved entity stream cannot be opened or some other i/o error occurs.- See Also:
XMLResourceIdentifier
-
-