Package net.targetr.wtm3.cache
Class ClassPathResourceCache
java.lang.Object
net.targetr.wtm3.cache.ClassPathResourceCache
Provides cached access to classpath resources through a
ResourceCache.- Author:
- Dr Michael Gardiner
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a ClassPathResourceCache backed by the supplied common cache. -
Method Summary
-
Constructor Details
-
ClassPathResourceCache
Constructs a ClassPathResourceCache backed by the supplied common cache.- Parameters:
cache- the cache used to store and retrieve classpath resource data
-
-
Method Details
-
getBytes
Gets the byte array content of a classpath resource through the cache.- Parameters:
path- the path to the resource- Returns:
- the byte array content
- Throws:
IOException- if the resource was not found or an I/O error occurred
-