|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ImageCache
An image cache caches images by their names.
Method Summary | |
---|---|
ImageTemplate |
add(java.lang.String name,
long lastModified,
ImageTemplate image)
Adds an image to the cache. |
void |
check(java.lang.String name,
long lastModified)
Checks, whether an image is cached by the given name and matches the given 'lastModified' date. |
boolean |
contains(java.lang.String name)
Checks, whether an image exists in the cache by the given name. |
ImageTemplate |
get(java.lang.String name)
Gets the cached image by the given name. |
ImageTemplate |
remove(java.lang.String name)
Removes an image from the cache. |
Method Detail |
---|
ImageTemplate add(java.lang.String name, long lastModified, ImageTemplate image)
name
- the name to cache bylastModified
- the last modified timestampimage
- the image to cache
ImageTemplate remove(java.lang.String name)
name
- the name it is cached by
boolean contains(java.lang.String name)
name
- the name to search for
true
, if the image is present, false
otherwise.void check(java.lang.String name, long lastModified)
name
- the name to search forlastModified
- the last modified timestampImageTemplate get(java.lang.String name)
name
- the name to search for
null
, if not present.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |