public class LocalResolver extends Object implements EntityResolver2
Constructor and Description |
---|
LocalResolver(Class<?> base,
Map<String,String> publicIds,
Map<String,String> systemIds)
Constructor providing mappings of public and system identifiers to local
resources.
|
Modifier and Type | Method and Description |
---|---|
InputSource |
getExternalSubset(String name,
String baseURI) |
InputSource |
resolveEntity(String publicId,
String systemId) |
InputSource |
resolveEntity(String name,
String publicId,
String baseURI,
String systemId) |
public LocalResolver(Class<?> base, Map<String,String> publicIds, Map<String,String> systemIds)
base
- the class to use to locate local copiespublicIds
- mapping of public identifiers to local resourcessystemIds
- mapping of system identifiers to local resourcespublic InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException
resolveEntity
in interface EntityResolver
SAXException
IOException
public InputSource resolveEntity(String name, String publicId, String baseURI, String systemId) throws SAXException, IOException
resolveEntity
in interface EntityResolver2
SAXException
IOException
public InputSource getExternalSubset(String name, String baseURI) throws SAXException, IOException
getExternalSubset
in interface EntityResolver2
SAXException
IOException
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.