com.nostra13.universalimageloader.utils
Class DiskCacheUtils

java.lang.Object
  extended by com.nostra13.universalimageloader.utils.DiskCacheUtils

public final class DiskCacheUtils
extends Object

Utility for convenient work with disk cache.
NOTE: This utility works with file system so avoid using it on application main thread.

Since:
1.8.0
Author:
Sergey Tarasevich (nostra13[at]gmail[dot]com)

Method Summary
static File findInCache(String imageUri, DiskCache diskCache)
          Returns File of cached image or null if image was not cached in disk cache
static boolean removeFromCache(String imageUri, DiskCache diskCache)
          Removed cached image file from disk cache (if image was cached in disk cache before)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

findInCache

public static File findInCache(String imageUri,
                               DiskCache diskCache)
Returns File of cached image or null if image was not cached in disk cache


removeFromCache

public static boolean removeFromCache(String imageUri,
                                      DiskCache diskCache)
Removed cached image file from disk cache (if image was cached in disk cache before)

Returns:
true - if cached image file existed and was deleted; false - otherwise.


Copyright © 2011-2014. All Rights Reserved.