com.nostra13.universalimageloader.cache.disc
Interface DiscCacheAware

All Known Subinterfaces:
DiskCache
All Known Implementing Classes:
BaseDiscCache, LimitedAgeDiscCache, LruDiscCache, UnlimitedDiscCache

Deprecated. Use DiskCache instead

@Deprecated
public interface DiscCacheAware

Interface for disk cache

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

Method Summary
 void clear()
          Deprecated. Clears disk cache.
 void close()
          Deprecated. Closes disk cache, releases resources.
 File get(String imageUri)
          Deprecated. Returns file of cached image
 File getDirectory()
          Deprecated. Returns root directory of disk cache
 boolean remove(String imageUri)
          Deprecated. Removes image file associated with incoming URI
 boolean save(String imageUri, android.graphics.Bitmap bitmap)
          Deprecated. Saves image bitmap in disk cache.
 boolean save(String imageUri, InputStream imageStream, IoUtils.CopyListener listener)
          Deprecated. Saves image stream in disk cache.
 

Method Detail

getDirectory

File getDirectory()
Deprecated. 
Returns root directory of disk cache

Returns:
Root directory of disk cache

get

File get(String imageUri)
Deprecated. 
Returns file of cached image

Parameters:
imageUri - Original image URI
Returns:
File of cached image or null if image wasn't cached

save

boolean save(String imageUri,
             InputStream imageStream,
             IoUtils.CopyListener listener)
             throws IOException
Deprecated. 
Saves image stream in disk cache.

Parameters:
imageUri - Original image URI
imageStream - Input stream of image
listener - Listener for saving progress, can be ignored if you don't use progress listener in ImageLoader calls
Returns:
true - if image was saved successfully; false - if image wasn't saved in disk cache.
Throws:
IOException

save

boolean save(String imageUri,
             android.graphics.Bitmap bitmap)
             throws IOException
Deprecated. 
Saves image bitmap in disk cache.

Parameters:
imageUri - Original image URI
bitmap - Image bitmap
Returns:
true - if bitmap was saved successfully; false - if bitmap wasn't saved in disk cache.
Throws:
IOException

remove

boolean remove(String imageUri)
Deprecated. 
Removes image file associated with incoming URI

Parameters:
imageUri - Image URI
Returns:
true - if image file is deleted successfully; false - if image file doesn't exist for incoming URI or image file can't be deleted.

close

void close()
Deprecated. 
Closes disk cache, releases resources.


clear

void clear()
Deprecated. 
Clears disk cache.



Copyright © 2011-2014. All Rights Reserved.