com.nostra13.universalimageloader.cache.disc
Class BaseDiscCache
java.lang.Object
com.nostra13.universalimageloader.cache.disc.BaseDiscCache
- All Implemented Interfaces:
- DiscCacheAware
- Direct Known Subclasses:
- LimitedAgeDiscCache, LimitedDiscCache, UnlimitedDiscCache
public abstract class BaseDiscCache
- extends Object
- implements DiscCacheAware
Base disc cache. Implements common functionality for disc cache.
- Since:
- 1.0.0
- Author:
- Sergey Tarasevich (nostra13[at]gmail[dot]com)
- See Also:
DiscCacheAware
,
FileNameGenerator
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.nostra13.universalimageloader.cache.disc.DiscCacheAware |
put |
cacheDir
protected File cacheDir
BaseDiscCache
public BaseDiscCache(File cacheDir)
BaseDiscCache
public BaseDiscCache(File cacheDir,
FileNameGenerator fileNameGenerator)
get
public File get(String key)
- Description copied from interface:
DiscCacheAware
- 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.
- Specified by:
get
in interface DiscCacheAware
clear
public void clear()
- Description copied from interface:
DiscCacheAware
- Clears cache directory
- Specified by:
clear
in interface DiscCacheAware
Copyright © 2011-2013. All Rights Reserved.