Package org.geotools.util
Class InternalEntityResolver
Object
InternalEntityResolver
- All Implemented Interfaces:
EntityResolver3,EntityResolver,EntityResolver2
Entity Resolver which allows access to internal files and sample-data as either
"file" references to (from
IDE) or "jar:file" references (from Maven).
This implementation assumes standard maven layout with sample-data generated into target/test-classes
location.
See also sample-data module SampleData.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic InternalEntityResolverRecommended for local GeoTools resources and testing, allowing access to sample data and common http locations via DefaultEntityResolver. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedUse of internal resources in addition to external resources allowed by DefaultEntityResolver instance.InternalEntityResolver(EntityResolver delegate) Allows use of internal resources in addition to those allowed by delegate. -
Method Summary
Modifier and TypeMethodDescriptionComma seperated list of entity resolution protocols required for EntityResolver to function.getExternalSubset(String name, String baseURI) resolveEntity(String publicId, String systemId) resolveEntity(String name, String publicId, String baseURI, String systemId) toString()
-
Field Details
-
INSTANCE
Recommended for local GeoTools resources and testing, allowing access to sample data and common http locations via DefaultEntityResolver.
-
-
Constructor Details
-
InternalEntityResolver
protected InternalEntityResolver()Use of internal resources in addition to external resources allowed by DefaultEntityResolver instance. -
InternalEntityResolver
Allows use of internal resources in addition to those allowed by delegate.- Parameters:
delegate- Entity resolver to be used for non-internal resources
-
-
Method Details
-
getAccess
Description copied from interface:EntityResolver3Comma seperated list of entity resolution protocols required for EntityResolver to function.Common examples:
"http","file", or combined"file,http".To allow all access
"all", or to suppress all access""supported.- Specified by:
getAccessin interfaceEntityResolver3- Returns:
- Comma seperated list of protocols, allow all
"all", or none"".
-
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
-
resolveEntity
- Specified by:
resolveEntityin interfaceEntityResolver- Throws:
SAXExceptionIOException
-
toString
-