|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectnet.tsz.afinal.bitmap.core.BitmapCache
public class BitmapCache
| 嵌套类摘要 | |
|---|---|
static class |
BitmapCache.ImageCacheParams
A holder class that contains cache parameters. |
| 构造方法摘要 | |
|---|---|
BitmapCache(BitmapCache.ImageCacheParams cacheParams)
Creating a new ImageCache object using the specified parameters. |
|
| 方法摘要 | |
|---|---|
void |
addBitmapToCache(java.lang.String data,
Bitmap bitmap)
Adds a bitmap to both memory and disk cache. |
void |
clearCache()
Clears both the memory and disk cache associated with this ImageCache object. |
void |
clearCache(java.lang.String key)
|
void |
clearDiskCache()
|
void |
clearDiskCache(java.lang.String key)
|
void |
clearMemoryCache()
|
void |
clearMemoryCache(java.lang.String key)
|
void |
close()
Closes the disk cache associated with this ImageCache object. |
void |
flush()
Flushes the disk cache associated with this ImageCache object. |
Bitmap |
getBitmapFromDiskCache(java.lang.String data)
获取硬盘缓存 |
Bitmap |
getBitmapFromMemCache(java.lang.String data)
Get from memory cache. |
void |
initDiskCache()
Initializes the disk cache. |
void |
setCompressFormat(CompressFormat format)
|
| 从类 java.lang.Object 继承的方法 |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public BitmapCache(BitmapCache.ImageCacheParams cacheParams)
cacheParams - The cache parameters to use to initialize the cache| 方法详细信息 |
|---|
public void initDiskCache()
public void addBitmapToCache(java.lang.String data,
Bitmap bitmap)
data - Unique identifier for the bitmap to storebitmap - The bitmap to storepublic Bitmap getBitmapFromMemCache(java.lang.String data)
data - Unique identifier for which item to get
public Bitmap getBitmapFromDiskCache(java.lang.String data)
data -
public void clearCache()
public void clearDiskCache()
public void clearMemoryCache()
public void clearCache(java.lang.String key)
public void clearDiskCache(java.lang.String key)
public void clearMemoryCache(java.lang.String key)
public void flush()
public void close()
public void setCompressFormat(CompressFormat format)
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||