public class LocalResolver extends Object implements EntityResolver2
Constructor and Description |
---|
LocalResolver(Map<String,String> publicIds,
Map<String,String> systemIds,
boolean blockExternal)
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 base,
String systemId) |
public LocalResolver(Map<String,String> publicIds, Map<String,String> systemIds, boolean blockExternal)
publicIds
- mapping of well-known public identifiers to local
resourcessystemIds
- mapping of well-known system identifiers to local
resourcesblockExternal
- are external resources blocked that are not
well-knownpublic InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException
resolveEntity
in interface EntityResolver
SAXException
IOException
public InputSource resolveEntity(String name, String publicId, String base, 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-2021 Apache Software Foundation. All Rights Reserved.