public class DOMEntityResolverWrapper extends Object implements XMLEntityResolver
LSResourceResolver
Modifier and Type | Field and Description |
---|---|
protected org.w3c.dom.ls.LSResourceResolver |
fEntityResolver
The DOM entity resolver.
|
Constructor and Description |
---|
DOMEntityResolverWrapper()
Default constructor.
|
DOMEntityResolverWrapper(org.w3c.dom.ls.LSResourceResolver entityResolver)
Wraps the specified DOM entity resolver.
|
Modifier and Type | Method and Description |
---|---|
org.w3c.dom.ls.LSResourceResolver |
getEntityResolver()
Returns the DOM entity resolver.
|
XMLInputSource |
resolveEntity(XMLResourceIdentifier resourceIdentifier)
Resolves an external parsed entity.
|
void |
setEntityResolver(org.w3c.dom.ls.LSResourceResolver entityResolver)
Sets the DOM entity resolver.
|
protected org.w3c.dom.ls.LSResourceResolver fEntityResolver
public DOMEntityResolverWrapper()
public DOMEntityResolverWrapper(org.w3c.dom.ls.LSResourceResolver entityResolver)
public void setEntityResolver(org.w3c.dom.ls.LSResourceResolver entityResolver)
public org.w3c.dom.ls.LSResourceResolver getEntityResolver()
public XMLInputSource resolveEntity(XMLResourceIdentifier resourceIdentifier) throws XNIException, IOException
resolveEntity
in interface XMLEntityResolver
resourceIdentifier
- description of the resource to be revsovedXNIException
- Thrown on general error.IOException
- Thrown if resolved entity stream cannot be
opened or some other i/o error occurs.XMLResourceIdentifier
Copyright © 2005-2015 Apache Software Foundation. All Rights Reserved.