Java Code Examples for com.nostra13.universalimageloader.cache.disc.DiskCache#get()
The following examples show how to use
com.nostra13.universalimageloader.cache.disc.DiskCache#get() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DiskCacheUtils.java From MiBandDecompiled with Apache License 2.0 | 5 votes |
public static File findInCache(String s, DiskCache diskcache) { File file = diskcache.get(s); if (file != null && file.exists()) { return file; } else { return null; } }
Example 2
Source File: DiskCacheUtils.java From candybar with Apache License 2.0 | 4 votes |
/** * 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; }
Example 3
Source File: DiskCacheUtils.java From letv with Apache License 2.0 | 4 votes |
public static File findInCache(String imageUri, DiskCache diskCache) { File image = diskCache.get(imageUri); return (image == null || !image.exists()) ? null : image; }
Example 4
Source File: DiskCacheUtils.java From letv with Apache License 2.0 | 4 votes |
public static boolean removeFromCache(String imageUri, DiskCache diskCache) { File image = diskCache.get(imageUri); return image != null && image.exists() && image.delete(); }
Example 5
Source File: DiskCacheUtils.java From mobile-manager-tool with MIT License | 4 votes |
/** 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; }
Example 6
Source File: DiskCacheUtils.java From BigApp_WordPress_Android with Apache License 2.0 | 4 votes |
/** 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; }
Example 7
Source File: DiskCacheUtils.java From WliveTV with Apache License 2.0 | 4 votes |
/** 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; }
Example 8
Source File: DiskCacheUtils.java From MiBandDecompiled with Apache License 2.0 | 4 votes |
public static boolean removeFromCache(String s, DiskCache diskcache) { File file = diskcache.get(s); return file != null && file.exists() && file.delete(); }
Example 9
Source File: DiskCacheUtils.java From Android-Universal-Image-Loader-Modify with Apache License 2.0 | 4 votes |
/** * 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; }
Example 10
Source File: DiskCacheUtils.java From android-open-project-demo with Apache License 2.0 | 4 votes |
/** 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; }
Example 11
Source File: DiskCacheUtils.java From candybar with Apache License 2.0 | 2 votes |
/** * 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(); }
Example 12
Source File: DiskCacheUtils.java From mobile-manager-tool with MIT License | 2 votes |
/** * 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(); }
Example 13
Source File: DiskCacheUtils.java From BigApp_WordPress_Android with Apache License 2.0 | 2 votes |
/** * 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(); }
Example 14
Source File: DiskCacheUtils.java From WliveTV with Apache License 2.0 | 2 votes |
/** * 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(); }
Example 15
Source File: DiskCacheUtils.java From Android-Universal-Image-Loader-Modify with Apache License 2.0 | 2 votes |
/** * 从文件缓存中根据图片链接地址删除缓存文件 * 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(); }
Example 16
Source File: DiskCacheUtils.java From android-open-project-demo with Apache License 2.0 | 2 votes |
/** * 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(); }