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 NullEntityResolver
Singleton 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:
resolveEntity
in interfaceEntityResolver
- Returns:
null
to request that the parser open a regular URI connection to the system identifier.- Throws:
SAXException
IOException
-
getExternalSubset
- Specified by:
getExternalSubset
in interfaceEntityResolver2
- Throws:
SAXException
IOException
-
resolveEntity
public InputSource resolveEntity(String name, String publicId, String baseURI, String systemId) throws SAXException, IOException - Specified by:
resolveEntity
in interfaceEntityResolver2
- Throws:
SAXException
IOException
-