Class EntityResolverWrapper
- java.lang.Object
-
- org.smooks.engine.delivery.sax.ng.org.apache.xerces.util.EntityResolverWrapper
-
- All Implemented Interfaces:
XMLEntityResolver
public class EntityResolverWrapper extends Object implements XMLEntityResolver
This class wraps a SAX entity resolver in an XNI entity resolver.- Version:
- $Id$
- Author:
- Andy Clark, IBM
- See Also:
EntityResolver
-
-
Field Summary
Fields Modifier and Type Field Description protected EntityResolver
fEntityResolver
The SAX entity resolver.
-
Constructor Summary
Constructors Constructor Description EntityResolverWrapper()
Default constructor.EntityResolverWrapper(EntityResolver entityResolver)
Wraps the specified SAX entity resolver.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Field Detail
-
fEntityResolver
protected EntityResolver fEntityResolver
The SAX entity resolver.
-
-
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, IOException
Resolves an external parsed entity. If the entity cannot be resolved, this method should return null.- Specified by:
resolveEntity
in interfaceXMLEntityResolver
- Parameters:
resourceIdentifier
- contains the physical co-ordinates 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
-
-