public interface ResourceCache
ResourceCache. By default a file cache is used:
DefaultResourceCache.| Modifier and Type | Method and Description |
|---|---|
boolean |
isCached(java.lang.String resourceId)
Allows to query if a resource with the given id is present within the
local cache.
|
byte[] |
read(java.lang.String resourceId)
Reads the given resource, identified by the resourceId, from the cache.
|
void |
write(java.lang.String resourceId,
byte[] data)
Write the given byte array to the internal store and register it on the
given resource ID.
|
boolean isCached(java.lang.String resourceId)
resourceId - The resourceIdbyte[] read(java.lang.String resourceId)
resourceId - the resource id.java.lang.IllegalArgumentException - if no such resource is existing.void write(java.lang.String resourceId,
byte[] data)
throws java.io.IOException
resourceId - the resource id, never null.data - the datajava.io.IOException - when an IO error occurs.