com.nostra13.universalimageloader.cache.disc
Interface DiscCacheAware

All Known Implementing Classes:
BaseDiscCache, FileCountLimitedDiscCache, LimitedAgeDiscCache, LimitedDiscCache, TotalSizeLimitedDiscCache, UnlimitedDiscCache

public interface DiscCacheAware

Interface for disc cache

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

Method Summary
 void clear()
          Clears cache directory
 java.io.File get(java.lang.String key)
          Returns file object appropriate incoming key.
 void put(java.lang.String key, java.io.File file)
          This method must not to save file on file system in fact.
 

Method Detail

put

void put(java.lang.String key,
         java.io.File file)
This method must not to save file on file system in fact. It is called after image was cached in cache directory and it was decoded to bitmap in memory. Such order is required to prevent possible deletion of file after it was cached on disc and before it was tried to decode to bitmap.


get

java.io.File get(java.lang.String key)
Returns file object appropriate incoming key.
NOTE: Must not to return a null. Method must return specific file object for incoming key whether file exists or not.


clear

void clear()
Clears cache directory



Copyright © 2011-2013. All Rights Reserved.