public class ClasspathEntityResolver extends Object implements EntityResolver
class loader
.
It will first attempt to use the root classpath, then it will look in META-INF.
The resolver is chainable, so you can construct it with a resolver that further attemps to resolve the entity.Modifier and Type | Field and Description |
---|---|
protected org.apache.log4j.Logger |
mLogger |
Constructor and Description |
---|
ClasspathEntityResolver() |
ClasspathEntityResolver(EntityResolver pNext) |
Modifier and Type | Method and Description |
---|---|
InputSource |
resolveEntity(String pPublicId,
String pSystemId) |
void |
setNext(EntityResolver pNext)
Configure the next entity resolver in the chain.
|
public ClasspathEntityResolver()
public ClasspathEntityResolver(EntityResolver pNext)
public void setNext(EntityResolver pNext)
pNext
- the next entity resolver in the chain, may be null
.public InputSource resolveEntity(String pPublicId, String pSystemId) throws SAXException, IOException
resolveEntity
in interface EntityResolver
SAXException
IOException
© 1998- 2021 Escenic AS