Package nz.org.riskscape.engine.resource
Class BaseResource
java.lang.Object
nz.org.riskscape.engine.resource.BaseResource
- All Implemented Interfaces:
Resource
Base class for Resource
s.
-
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 boolean
ensureLocal
(Resource.Options options, String extension) boolean
int
hashCode()
protected String
localFilename
(URI uri) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface nz.org.riskscape.engine.resource.Resource
ensureLocal, getContentAsString, getContentReader, getContentStream, getMediaType
-
Field Details
-
location
-
-
Constructor Details
-
BaseResource
-
-
Method Details
-
ensureLocal
- Specified by:
ensureLocal
in interfaceResource
-
localFilename
-
equals
-
canEqual
-
hashCode
public int hashCode() -
getLocation
- Specified by:
getLocation
in interfaceResource
- Returns:
- a
URI
identifying where this resource is located
-