public abstract class AbstractXMLEntityResolver extends Object implements EntityResolver
Modifier and Type | Field and Description |
---|---|
protected Map<String,String> |
publicIdEntities
Map of public identity entities supported.
|
protected Map<String,String> |
systemIdEntities
Map of system identity entities supported.
|
Constructor and Description |
---|
AbstractXMLEntityResolver() |
Modifier and Type | Method and Description |
---|---|
protected InputSource |
getLocalInputSource(String publicId,
String systemId,
String localPath)
Accessor for the input source for a path.
|
InputSource |
resolveEntity(String publicId,
String systemId)
Method to resolve XML entities.
|
protected Map<String,String> publicIdEntities
public InputSource resolveEntity(String publicId, String systemId) throws SAXException
resolveEntity
in interface EntityResolver
publicId
- The public id.systemId
- The system id.SAXException
EntityResolver.resolveEntity(java.lang.String,java.lang.String)
protected InputSource getLocalInputSource(String publicId, String systemId, String localPath) throws FileNotFoundException
publicId
- Public identitysystemId
- System identitylocalPath
- The local pathFileNotFoundException
- if the local file is not accessibleCopyright © 2019. All rights reserved.