Package nz.org.riskscape.engine.resource
Class BaseResource
java.lang.Object
nz.org.riskscape.engine.resource.BaseResource
- All Implemented Interfaces:
Resource
Base class for Resources.
-
Nested Class Summary
Nested classes/interfaces inherited from interface nz.org.riskscape.engine.resource.Resource
Resource.Options, Resource.PseudoResource -
Field Summary
FieldsFields inherited from interface nz.org.riskscape.engine.resource.Resource
NO_BYTES, SECURE_OPTIONS, UNKNOWN, UNKNOWN_URI -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanensureLocal(Resource.Options options, String extension) booleaninthashCode()protected StringlocalFilename(URI uri) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface nz.org.riskscape.engine.resource.Resource
ensureLocal, getContentAsString, getContentReader, getContentStream, getLocal, getMediaType
-
Field Details
-
location
-
-
Constructor Details
-
BaseResource
-
-
Method Details
-
ensureLocal
- Specified by:
ensureLocalin interfaceResource
-
localFilename
-
equals
-
canEqual
-
hashCode
public int hashCode() -
getLocation
- Specified by:
getLocationin interfaceResource- Returns:
- a
URIidentifying where this resource is located
-