public class NullEntityResolver extends Object implements EntityResolver2, Serializable
EntityResolver2
(used as an alternative to null checks).
This implementation returns null
to request that the parser open a regular URI
connection to the system identifier.
Modifier and Type | Field and Description |
---|---|
static NullEntityResolver |
INSTANCE
Singleton instance of PreventLocalEntityResolver
|
Modifier | Constructor and Description |
---|---|
protected |
NullEntityResolver() |
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 static final NullEntityResolver INSTANCE
public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException
resolveEntity
in interface EntityResolver
null
to request that the parser open a regular URI connection to the system
identifier.SAXException
IOException
public InputSource getExternalSubset(String name, String baseURI) throws SAXException, IOException
getExternalSubset
in interface EntityResolver2
SAXException
IOException
public InputSource resolveEntity(String name, String publicId, String baseURI, String systemId) throws SAXException, IOException
resolveEntity
in interface EntityResolver2
SAXException
IOException
Copyright © 1996–2019 Geotools. All rights reserved.