public class LocalResolver
extends java.lang.Object
implements org.xml.sax.ext.EntityResolver2
Constructor and Description |
---|
LocalResolver(java.util.Map<java.lang.String,java.lang.String> publicIds,
java.util.Map<java.lang.String,java.lang.String> systemIds,
boolean blockExternal)
Constructor providing mappings of public and system identifiers to local
resources.
|
Modifier and Type | Method and Description |
---|---|
org.xml.sax.InputSource |
getExternalSubset(java.lang.String name,
java.lang.String baseURI) |
org.xml.sax.InputSource |
resolveEntity(java.lang.String publicId,
java.lang.String systemId) |
org.xml.sax.InputSource |
resolveEntity(java.lang.String name,
java.lang.String publicId,
java.lang.String base,
java.lang.String systemId) |
public LocalResolver(java.util.Map<java.lang.String,java.lang.String> publicIds, java.util.Map<java.lang.String,java.lang.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 org.xml.sax.InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId) throws org.xml.sax.SAXException, java.io.IOException
resolveEntity
in interface org.xml.sax.EntityResolver
org.xml.sax.SAXException
java.io.IOException
public org.xml.sax.InputSource resolveEntity(java.lang.String name, java.lang.String publicId, java.lang.String base, java.lang.String systemId) throws org.xml.sax.SAXException, java.io.IOException
resolveEntity
in interface org.xml.sax.ext.EntityResolver2
org.xml.sax.SAXException
java.io.IOException
public org.xml.sax.InputSource getExternalSubset(java.lang.String name, java.lang.String baseURI) throws org.xml.sax.SAXException, java.io.IOException
getExternalSubset
in interface org.xml.sax.ext.EntityResolver2
org.xml.sax.SAXException
java.io.IOException
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.