public class ImageProvider
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static boolean |
DEBUG |
protected static java.lang.String |
TAG |
| Constructor and Description |
|---|
ImageProvider(android.content.Context context,
ImageMemoryCache memoryCache,
ImageDiskCacheProvider fileProvider) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBitmapToMemCache(java.lang.String key,
android.graphics.drawable.BitmapDrawable drawable) |
void |
cancelTask(ImageTask task) |
void |
clearDiskCache()
clear the disk cache
|
void |
clearMemoryCache()
clear the memory cache
|
android.graphics.drawable.BitmapDrawable |
createBitmapDrawable(android.content.res.Resources resources,
android.graphics.Bitmap bitmap)
Create a BitmapDrawable which can be managed in ImageProvider
|
android.graphics.Bitmap |
fetchBitmapData(ImageLoader imageLoader,
ImageTask imageTask,
ImageReSizer imageReSizer)
Get Bitmap.
|
void |
flushFileCache() |
android.graphics.drawable.BitmapDrawable |
getBitmapFromMemCache(ImageTask imageTask)
Get from memory cache.
|
static long |
getBitmapSize(android.graphics.drawable.BitmapDrawable value)
Get the size in bytes of a bitmap in a BitmapDrawable.
|
long |
getFileCacheMaxSpace() |
java.lang.String |
getFileCachePath()
return the file cache path
|
long |
getFileCacheUsedSpace()
get the used space
|
long |
getMemoryCacheMaxSpace() |
long |
getMemoryCacheUsedSpace() |
protected static final boolean DEBUG
protected static final java.lang.String TAG
public ImageProvider(android.content.Context context,
ImageMemoryCache memoryCache,
ImageDiskCacheProvider fileProvider)
public static long getBitmapSize(android.graphics.drawable.BitmapDrawable value)
value - public android.graphics.drawable.BitmapDrawable createBitmapDrawable(android.content.res.Resources resources,
android.graphics.Bitmap bitmap)
resources - bitmap - public android.graphics.drawable.BitmapDrawable getBitmapFromMemCache(ImageTask imageTask)
public void addBitmapToMemCache(java.lang.String key,
android.graphics.drawable.BitmapDrawable drawable)
public void cancelTask(ImageTask task)
public android.graphics.Bitmap fetchBitmapData(ImageLoader imageLoader, ImageTask imageTask, ImageReSizer imageReSizer)
public void flushFileCache()
public void clearMemoryCache()
public void clearDiskCache()
public long getMemoryCacheMaxSpace()
public long getMemoryCacheUsedSpace()
public java.lang.String getFileCachePath()
public long getFileCacheUsedSpace()
public long getFileCacheMaxSpace()