public class DOMEntityResolverWrapper extends Object implements XMLEntityResolver
LSResourceResolver
Modifier and Type | Field and Description |
---|---|
protected LSResourceResolver |
fEntityResolver
The DOM entity resolver.
|
Constructor and Description |
---|
DOMEntityResolverWrapper()
Default constructor.
|
DOMEntityResolverWrapper(LSResourceResolver entityResolver)
Wraps the specified DOM entity resolver.
|
Modifier and Type | Method and 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.
|
protected LSResourceResolver fEntityResolver
public DOMEntityResolverWrapper()
public DOMEntityResolverWrapper(LSResourceResolver entityResolver)
public void setEntityResolver(LSResourceResolver entityResolver)
public 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 © 2017 JBoss by Red Hat. All rights reserved.