Package org.geotools.util
Class NullEntityResolver
Object
NullEntityResolver
- All Implemented Interfaces:
Serializable,EntityResolver,EntityResolver2
NullObject implementation for
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.
- Author:
- Jody Garnett (Boundless)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final NullEntityResolverSingleton instance of PreventLocalEntityResolver -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetExternalSubset(String name, String baseURI) resolveEntity(String publicId, String systemId) resolveEntity(String name, String publicId, String baseURI, String systemId)
-
Field Details
-
INSTANCE
Singleton instance of PreventLocalEntityResolver
-
-
Constructor Details
-
NullEntityResolver
protected NullEntityResolver()
-
-
Method Details
-
resolveEntity
- Specified by:
resolveEntityin interfaceEntityResolver- Returns:
nullto request that the parser open a regular URI connection to the system identifier.- Throws:
SAXExceptionIOException
-
getExternalSubset
- Specified by:
getExternalSubsetin interfaceEntityResolver2- Throws:
SAXExceptionIOException
-
resolveEntity
public InputSource resolveEntity(String name, String publicId, String baseURI, String systemId) throws SAXException, IOException - Specified by:
resolveEntityin interfaceEntityResolver2- Throws:
SAXExceptionIOException
-