java.lang.Object
cloud.piranha.resource.impl.ByteArrayResource
cloud.piranha.resource.impl.StringResource
- All Implemented Interfaces:
Resource
A resource based on a string value.
- Author:
- Arjan Tijms
-
Constructor Summary
ConstructorsConstructorDescriptionStringResource
(String location, String value) Creates the resource using a string value -
Method Summary
Methods inherited from class cloud.piranha.resource.impl.ByteArrayResource
getAllLocations, getBytes, getName, getResource, getResourceAsStream, getResourceAsStreamByLocation, toString
-
Constructor Details
-
StringResource
Creates the resource using a string value- Parameters:
location
- the location of the valuevalue
- the value itself
-