public final class EntityResolverChain extends Object implements EntityResolver
EntityResolver
implementation backed by a chain of resolvers used
for resolving entities.Constructor and Description |
---|
EntityResolverChain()
Creates a new
EntityResolverChain instance backed by any
available EntityResolver implementation in the system. |
EntityResolverChain(EntityResolver[] resolvers)
Creates a new
EntityResolverChain instance taking an array of
resolvers to use for resolving entities. |
Modifier and Type | Method and Description |
---|---|
EntityResolver[] |
getResolvers()
Gets the resolvers of the instance.
|
InputSource |
resolveEntity(String publicId,
String systemId)
Resolves entities by querying all resolvers of the instance stopping at
the first one not returning
null . |
public EntityResolverChain()
EntityResolverChain
instance backed by any
available EntityResolver
implementation in the system.public EntityResolverChain(EntityResolver[] resolvers)
EntityResolverChain
instance taking an array of
resolvers to use for resolving entities.resolvers
- The resolvers to use for resolving entities.public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException
null
.resolveEntity
in interface EntityResolver
publicId
- The public identifier of the external entity being
referenced, or null
if none was supplied.systemId
- The system identifier of the external entity being
referenced.InputSource
object describing the new input source, or
null
to request that the parser open a regular URI connection to
the system identifier.SAXException
- Any SAX exception, possibly wrapping another
exception.IOException
- A Java-specific IO exception, possibly the result of
creating a new InputStream
or Reader
for the
InputSource
.EntityResolver.resolveEntity(java.lang.String, java.lang.String)
public EntityResolver[] getResolvers()
Copyright © 2005-2012 jDTAUS. All Rights Reserved.