public class DelegatingEntityResolver extends Object implements EntityResolver
EntityResolver implementation that delegates to a BeansDtdResolver
 and a PluggableSchemaResolver for DTDs and XML schemas, respectively.BeansDtdResolver, 
PluggableSchemaResolver| Modifier and Type | Field and Description | 
|---|---|
static String | 
DTD_SUFFIX
Suffix for DTD files 
 | 
static String | 
XSD_SUFFIX
Suffix for schema definition files 
 | 
| Constructor and Description | 
|---|
DelegatingEntityResolver(ClassLoader classLoader)
Create a new DelegatingEntityResolver that delegates to
 a default  
BeansDtdResolver and a default PluggableSchemaResolver. | 
DelegatingEntityResolver(EntityResolver dtdResolver,
                        EntityResolver schemaResolver)
Create a new DelegatingEntityResolver that delegates to
 the given  
EntityResolvers. | 
| Modifier and Type | Method and Description | 
|---|---|
InputSource | 
resolveEntity(String publicId,
             String systemId)  | 
String | 
toString()  | 
public static final String DTD_SUFFIX
public static final String XSD_SUFFIX
public DelegatingEntityResolver(ClassLoader classLoader)
BeansDtdResolver and a default PluggableSchemaResolver.
 Configures the PluggableSchemaResolver with the supplied
 ClassLoader.
classLoader - the ClassLoader to use for loading
 (can be null) to use the default ClassLoader)public DelegatingEntityResolver(EntityResolver dtdResolver, EntityResolver schemaResolver)
EntityResolvers.dtdResolver - the EntityResolver to resolve DTDs withschemaResolver - the EntityResolver to resolve XML schemas withpublic InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException
resolveEntity in interface EntityResolverSAXExceptionIOException