Package net.targetr.wtm3.cache
Class ResourceCache
java.lang.Object
net.targetr.wtm3.cache.ResourceCache
Caches resources on the classpath in memory.
- Author:
- Dr Michael Gardiner
-
Method Summary
Modifier and TypeMethodDescriptionstatic ResourceCache
get()
byte[]
Get a resource quickly by using cache if possible.
-
Method Details
-
get
-
get
Get a resource quickly by using cache if possible.- Parameters:
path
- the path to the resource in the class path.- Returns:
- byte array of resource data.
- Throws:
IOException
- An exception occurred while reading the resource from class path.
-