public interface ResourceCache
ResourceCache. By default a file cache is used:
DefaultResourceCache.| Modifier and Type | Method and Description |
|---|---|
void |
clear(String resourceId)
Remove a cache entry.
|
boolean |
isCached(String resourceId)
Allows to query if a resource with the given id is present within the
local cache.
|
byte[] |
read(String resourceId)
Reads the given resource, identified by the resourceId, from the cache.
|
void |
write(String resourceId,
byte[] data)
Write the given byte array to the internal store and register it on the
given resource ID.
|
void write(String resourceId, byte[] data)
resourceId - the resource id, never null.data - the dataIOException - when an IO error occurs.boolean isCached(String resourceId)
resourceId - The resourceIdbyte[] read(String resourceId)
resourceId - the resource id.IllegalArgumentException - if no such resource is existing.Copyright © 2012-2015 JavaMoney. All Rights Reserved.