public class EntityResolverImpl extends java.lang.Object implements EntityResolver
Constructor and Description |
---|
EntityResolverImpl()
Construct the entity resolver without a cache.
|
EntityResolverImpl(Cache cache)
Construct the entity resolver by storing the cache itself.
|
EntityResolverImpl(java.io.File cacheRoot)
Construct the entity resolver by storing the cache root.
|
EntityResolverImpl(java.io.File cacheRoot,
java.util.HashMap<java.net.URI,java.net.URI> uriMap)
Create the entity resolver with a set of local URIs
to be used by the loader in place of actual URIs.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
org.xml.sax.InputSource |
resolveEntity(java.lang.String publicId,
java.lang.String systemId)
Resolve the entity for a SAX parser using the system identifier.
|
org.apache.xerces.xni.parser.XMLInputSource |
resolveEntity(org.apache.xerces.xni.XMLResourceIdentifier resource)
Implements the resolveEntity method defined in the org.apache.xerces.xni.parser.XMLEntityResolver
interface, incorporating interactions with the local document cache (if it exists) to ensure that any
new documents are cached and any documents already in the cache are sourced from the cache.
|
org.apache.xerces.xni.parser.XMLInputSource |
resolveSchemaURI(java.net.URI originalURI) |
public EntityResolverImpl()
public EntityResolverImpl(java.io.File cacheRoot) throws XBRLException
cacheRoot
- The root directory of the local cache.XBRLException
- if the cache cannot be initialised.public EntityResolverImpl(Cache cache) throws XBRLException
cache
- The local cache to use.XBRLException
- if the cache cannot be initialised.public EntityResolverImpl(java.io.File cacheRoot, java.util.HashMap<java.net.URI,java.net.URI> uriMap) throws XBRLException
cacheRoot
- The root directory of the local cache.uriMap
- The map from original URIs to local URIs.XBRLException
- if any of the objects in the list of URIs is not a
java.net.URI object.public org.xml.sax.InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId)
resolveEntity
in interface org.xml.sax.EntityResolver
publicId
- The public identifier.systemId
- The system identifier that gets resolved.public org.apache.xerces.xni.parser.XMLInputSource resolveEntity(org.apache.xerces.xni.XMLResourceIdentifier resource) throws org.apache.xerces.xni.XNIException, java.io.IOException
resolveEntity
in interface org.apache.xerces.xni.parser.XMLEntityResolver
resource
- The XML Resource Identifier used to identify the XML resource to be converted
into an XML input source and to be cached if it is not already cached.org.apache.xerces.xni.XNIException
java.io.IOException
XMLEntityResolver.resolveEntity(org.apache.xerces.xni.XMLResourceIdentifier)
public org.apache.xerces.xni.parser.XMLInputSource resolveSchemaURI(java.net.URI originalURI)
originalURI
- the URI to be resolved.public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Object.equals(java.lang.Object)