本文整理汇总了Java中com.nostra13.universalimageloader.cache.disc.DiskCache.get方法的典型用法代码示例。如果您正苦于以下问题:Java DiskCache.get方法的具体用法?Java DiskCache.get怎么用?Java DiskCache.get使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.nostra13.universalimageloader.cache.disc.DiskCache
的用法示例。
在下文中一共展示了DiskCache.get方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: findInCache
import com.nostra13.universalimageloader.cache.disc.DiskCache; //导入方法依赖的package包/类
public static File findInCache(String s, DiskCache diskcache)
{
File file = diskcache.get(s);
if (file != null && file.exists())
{
return file;
} else
{
return null;
}
}
示例2: findInCache
import com.nostra13.universalimageloader.cache.disc.DiskCache; //导入方法依赖的package包/类
/** Returns {@link File} of cached image or <b>null</b> if image was not cached in disk cache */
public static File findInCache(String imageUri, DiskCache diskCache) {
File image = diskCache.get(imageUri);
return image != null && image.exists() ? image : null;
}
示例3: findInCache
import com.nostra13.universalimageloader.cache.disc.DiskCache; //导入方法依赖的package包/类
public static File findInCache(String imageUri, DiskCache diskCache) {
File image = diskCache.get(imageUri);
return (image == null || !image.exists()) ? null : image;
}
示例4: removeFromCache
import com.nostra13.universalimageloader.cache.disc.DiskCache; //导入方法依赖的package包/类
public static boolean removeFromCache(String imageUri, DiskCache diskCache) {
File image = diskCache.get(imageUri);
return image != null && image.exists() && image.delete();
}
示例5: findInCache
import com.nostra13.universalimageloader.cache.disc.DiskCache; //导入方法依赖的package包/类
/** Returns {@link java.io.File} of cached image or <b>null</b> if image was not cached in disk cache */
public static File findInCache(String imageUri, DiskCache diskCache) {
File image = diskCache.get(imageUri);
return image != null && image.exists() ? image : null;
}
示例6: removeFromCache
import com.nostra13.universalimageloader.cache.disc.DiskCache; //导入方法依赖的package包/类
public static boolean removeFromCache(String s, DiskCache diskcache)
{
File file = diskcache.get(s);
return file != null && file.exists() && file.delete();
}
示例7: findInCache
import com.nostra13.universalimageloader.cache.disc.DiskCache; //导入方法依赖的package包/类
/**
* Returns {@link File} of cached image or <b>null</b> if image was not cached in disk cache
* 从文件缓存中根据图片链接地址获取缓存的文件
*/
public static File findInCache(String imageUri, DiskCache diskCache) {
File image = diskCache.get(imageUri);
return image != null && image.exists() ? image : null;
}
示例8: removeFromCache
import com.nostra13.universalimageloader.cache.disc.DiskCache; //导入方法依赖的package包/类
/**
* Removed cached image file from disk cache (if image was cached in disk cache before)
*
* @return <b>true</b> - if cached image file existed and was deleted; <b>false</b> - otherwise.
*/
public static boolean removeFromCache(String imageUri, DiskCache diskCache) {
File image = diskCache.get(imageUri);
return image != null && image.exists() && image.delete();
}
示例9: removeFromCache
import com.nostra13.universalimageloader.cache.disc.DiskCache; //导入方法依赖的package包/类
/**
* 从文件缓存中根据图片链接地址删除缓存文件
* Removed cached image file from disk cache (if image was cached in disk cache before)
*
* @return <b>true</b> - if cached image file existed and was deleted; <b>false</b> - otherwise.
*/
public static boolean removeFromCache(String imageUri, DiskCache diskCache) {
File image = diskCache.get(imageUri);
return image != null && image.exists() && image.delete();
}