com.nostra13.universalimageloader.core.assist
Class DiscCacheUtil

java.lang.Object
  extended by com.nostra13.universalimageloader.core.assist.DiscCacheUtil

public final class DiscCacheUtil
extends Object

Utility for convenient work with disc 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, DiscCacheAware discCache)
          Returns File of cached image or null if image was not cached in disc cache
static boolean removeFromCache(String imageUri, DiscCacheAware discCache)
          Removed cached image file from disc cache (if image was cached in disc 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,
                               DiscCacheAware discCache)
Returns File of cached image or null if image was not cached in disc cache


removeFromCache

public static boolean removeFromCache(String imageUri,
                                      DiscCacheAware discCache)
Removed cached image file from disc cache (if image was cached in disc cache before)

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


Copyright © 2011-2013. All Rights Reserved.