|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.herroworld.imagegrabber.ImageCache
public class ImageCache
This class holds our bitmap caches (memory and disk).
Nested Class Summary | |
---|---|
static class |
ImageCache.ImageCacheParams
A holder class that contains cache parameters. |
Constructor Summary | |
---|---|
ImageCache(Context context,
ImageCache.ImageCacheParams cacheParams)
Creating a new ImageCache object using the specified parameters. |
|
ImageCache(Context context,
java.lang.String uniqueName)
Creating a new ImageCache object using the default parameters. |
Method Summary | |
---|---|
void |
addBitmapToCache(java.lang.String data,
Bitmap bitmap)
|
void |
clearCaches()
|
Bitmap |
getBitmapFromDiskCache(java.lang.String data)
Get from disk cache. |
Bitmap |
getBitmapFromMemCache(java.lang.String data)
Get from memory cache. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageCache(Context context, ImageCache.ImageCacheParams cacheParams)
context
- The context to usecacheParams
- The cache parameters to use to initialize the cachepublic ImageCache(Context context, java.lang.String uniqueName)
context
- The context to useuniqueName
- A unique name that will be appended to the cache
directoryMethod Detail |
---|
public void addBitmapToCache(java.lang.String data, Bitmap bitmap)
public Bitmap getBitmapFromMemCache(java.lang.String data)
data
- Unique identifier for which item to get
public Bitmap getBitmapFromDiskCache(java.lang.String data)
data
- Unique identifier for which item to get
public void clearCaches()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |