Package nz.org.riskscape.engine.resource
Class Resource.PseudoResource
java.lang.Object
nz.org.riskscape.engine.resource.Resource.PseudoResource
- All Implemented Interfaces:
Resource
- Enclosing interface:
- Resource
A resource that can not be opened but is still useful for identifying some content. Useful to use as a resource for plugin added resources.
-
Nested Class Summary
Nested classes/interfaces inherited from interface nz.org.riskscape.engine.resource.Resource
Resource.Options, Resource.PseudoResource -
Field Summary
Fields inherited from interface nz.org.riskscape.engine.resource.Resource
NO_BYTES, SECURE_OPTIONS, UNKNOWN, UNKNOWN_URI -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanReturn anInputStreamto the underlying resource.inthashCode()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, ensureLocal, getContentAsString, getContentReader, getLocal, getMediaType
-
Constructor Details
-
PseudoResource
-
-
Method Details
-
getContentStream
Description copied from interface:ResourceReturn an
InputStreamto the underlying resource.Each call should return a freshly created input stream.
- Specified by:
getContentStreamin interfaceResource- Returns:
- the input stream for the underlying resource.
- Throws:
RiskscapeIOException
-
equals
-
canEqual
-
hashCode
public int hashCode() -
getLocation
- Specified by:
getLocationin interfaceResource- Returns:
- a
URIidentifying where this resource is located
-