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
nullto 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 NullEntityResolverINSTANCESingleton instance of PreventLocalEntityResolver
-
Constructor Summary
Constructors Modifier Constructor Description protectedNullEntityResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputSourcegetExternalSubset(String name, String baseURI)InputSourceresolveEntity(String publicId, String systemId)InputSourceresolveEntity(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:
resolveEntityin interfaceEntityResolver- Returns:
nullto request that the parser open a regular URI connection to the system identifier.- Throws:
SAXExceptionIOException
-
getExternalSubset
public InputSource getExternalSubset(String name, String baseURI) throws SAXException, IOException
- 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
-
-