public class EntityResolverWrapper extends Object implements XMLEntityResolver
EntityResolver
Modifier and Type | Field and Description |
---|---|
protected EntityResolver |
fEntityResolver
The SAX entity resolver.
|
Constructor and Description |
---|
EntityResolverWrapper()
Default constructor.
|
EntityResolverWrapper(EntityResolver entityResolver)
Wraps the specified SAX entity resolver.
|
Modifier and Type | Method and 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.
|
protected EntityResolver fEntityResolver
public EntityResolverWrapper()
public EntityResolverWrapper(EntityResolver entityResolver)
public void setEntityResolver(EntityResolver entityResolver)
public EntityResolver getEntityResolver()
public XMLInputSource resolveEntity(XMLResourceIdentifier resourceIdentifier) throws XNIException, IOException
resolveEntity
in interface XMLEntityResolver
resourceIdentifier
- contains the physical co-ordinates of the resource to be resolvedXNIException
- Thrown on general error.IOException
- Thrown if resolved entity stream cannot be
opened or some other i/o error occurs.XMLResourceIdentifier
Copyright © 2017 JBoss by Red Hat. All rights reserved.