Package org.geotools.util
Class NullEntityResolver
- Object
-
- NullEntityResolver
-
- All Implemented Interfaces:
Serializable
,EntityResolver
,EntityResolver2
public class NullEntityResolver extends Object implements EntityResolver2, Serializable
NullObject implementation forEntityResolver2
(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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static NullEntityResolver
INSTANCE
Singleton instance of PreventLocalEntityResolver
-
Constructor Summary
Constructors Modifier Constructor Description protected
NullEntityResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputSource
getExternalSubset(String name, String baseURI)
InputSource
resolveEntity(String publicId, String systemId)
InputSource
resolveEntity(String name, String publicId, String baseURI, String systemId)
-
-
-
Field Detail
-
INSTANCE
public static final NullEntityResolver INSTANCE
Singleton instance of PreventLocalEntityResolver
-
-
Method Detail
-
resolveEntity
public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException
- 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
public InputSource getExternalSubset(String name, String baseURI) throws SAXException, IOException
- 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
-
-