com.nostra13.universalimageloader.cache.disc.impl
Class UnlimitedDiscCache

java.lang.Object
  extended by com.nostra13.universalimageloader.cache.disc.BaseDiscCache
      extended by 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

Field Summary
 
Fields inherited from class com.nostra13.universalimageloader.cache.disc.BaseDiscCache
cacheDir
 
Constructor Summary
UnlimitedDiscCache(java.io.File cacheDir)
           
UnlimitedDiscCache(java.io.File cacheDir, FileNameGenerator fileNameGenerator)
           
 
Method Summary
 void put(java.lang.String key, java.io.File file)
          This method must not to save file on file system in fact.
 
Methods inherited from class com.nostra13.universalimageloader.cache.disc.BaseDiscCache
clear, get
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnlimitedDiscCache

public UnlimitedDiscCache(java.io.File cacheDir)
Parameters:
cacheDir - Directory for file caching

UnlimitedDiscCache

public UnlimitedDiscCache(java.io.File cacheDir,
                          FileNameGenerator fileNameGenerator)
Parameters:
cacheDir - Directory for file caching
fileNameGenerator - Name generator for cached files
Method Detail

put

public void put(java.lang.String key,
                java.io.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.