Java Code Examples for com.facebook.internal.FileLruCache#get()
The following examples show how to use
com.facebook.internal.FileLruCache#get() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ImageResponseCache.java From aws-mobile-self-paced-labs-samples with Apache License 2.0 | 5 votes |
static InputStream getCachedImageStream(URL url, Context context) { InputStream imageStream = null; if (url != null) { if (isCDNURL(url)) { try { FileLruCache cache = getCache(context); imageStream = cache.get(url.toString()); } catch (IOException e) { Logger.log(LoggingBehavior.CACHE, Log.WARN, TAG, e.toString()); } } } return imageStream; }
Example 2
Source File: ImageResponseCache.java From HypFacebook with BSD 2-Clause "Simplified" License | 5 votes |
static InputStream getCachedImageStream(URL url, Context context) { InputStream imageStream = null; if (url != null) { if (isCDNURL(url)) { try { FileLruCache cache = getCache(context); imageStream = cache.get(url.toString()); } catch (IOException e) { Logger.log(LoggingBehavior.CACHE, Log.WARN, TAG, e.toString()); } } } return imageStream; }
Example 3
Source File: ImageResponseCache.java From FacebookNewsfeedSample-Android with Apache License 2.0 | 5 votes |
static InputStream getCachedImageStream(URL url, Context context) { InputStream imageStream = null; if (url != null) { if (isCDNURL(url)) { try { FileLruCache cache = getCache(context); imageStream = cache.get(url.toString()); } catch (IOException e) { Logger.log(LoggingBehavior.CACHE, Log.WARN, TAG, e.toString()); } } } return imageStream; }