com.nostra13.universalimageloader.cache.disc.impl
Class UnlimitedDiscCache
java.lang.Object
com.nostra13.universalimageloader.cache.disc.BaseDiscCache
com.nostra13.universalimageloader.cache.disc.impl.UnlimitedDiscCache
- All Implemented Interfaces:
- DiscCacheAware
public class UnlimitedDiscCache
- extends BaseDiscCache
Default implementation of disc cache. Cache size is unlimited.
- Since:
- 1.0.0
- Author:
- Sergey Tarasevich (nostra13[at]gmail[dot]com)
- See Also:
BaseDiscCache
Method Summary |
void |
put(String key,
File file)
This method must not to save file on file system in fact. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UnlimitedDiscCache
public UnlimitedDiscCache(File cacheDir)
- Parameters:
cacheDir
- Directory for file caching
UnlimitedDiscCache
public UnlimitedDiscCache(File cacheDir,
FileNameGenerator fileNameGenerator)
- Parameters:
cacheDir
- Directory for file cachingfileNameGenerator
- Name generator for cached files
put
public void put(String key,
File file)
- Description copied from interface:
DiscCacheAware
- 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.
Copyright © 2011-2013. All Rights Reserved.