|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.molwind.io.ImageFileCache
public class ImageFileCache
Stores generated images in the cache.
| Constructor Summary | |
|---|---|
ImageFileCache()
Empty constructer to build a Cache with the maximum size of 100 |
|
ImageFileCache(int size)
Constructor to build a Cache with the given size |
|
| Method Summary | |
|---|---|
java.awt.image.BufferedImage |
getImage(java.io.File imageFile)
Returns the given image from the image file cache. |
java.awt.image.BufferedImage |
getImage(java.lang.String fileName)
|
org.apache.commons.collections.map.LRUMap |
getImageCache()
Get the imageCache. |
static ImageFileCache |
getInstance()
Returns the instance of the image file cache. |
void |
putImage(java.io.File imageFile)
Puts a Buffered image to the Chache with the filename as key |
void |
set(org.apache.commons.collections.map.LRUMap newCache)
Set the imageCache. |
void |
update(java.io.File imageFile,
ImageFileCache imageFileCache)
Updates the given Image in the image cache. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ImageFileCache()
public ImageFileCache(int size)
| Method Detail |
|---|
public org.apache.commons.collections.map.LRUMap getImageCache()
public void set(org.apache.commons.collections.map.LRUMap newCache)
new - The new value.public static ImageFileCache getInstance()
public void update(java.io.File imageFile,
ImageFileCache imageFileCache)
throws java.io.IOException
imageFile - the image fileimageCache - the image file cache
java.io.IOExceptionpublic java.awt.image.BufferedImage getImage(java.lang.String fileName)
public void putImage(java.io.File imageFile)
throws java.io.IOException
imageFile -
java.io.IOExceptionpublic java.awt.image.BufferedImage getImage(java.io.File imageFile)
imageFile - the image file
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||