public final class FileLruCache extends Object
Modifier and Type | Class and Description |
---|---|
static class |
FileLruCache.Limits |
Constructor and Description |
---|
FileLruCache(Context context,
String tag,
FileLruCache.Limits limits) |
Modifier and Type | Method and Description |
---|---|
void |
clearCache() |
InputStream |
get(String key) |
InputStream |
get(String key,
String contentTag) |
InputStream |
interceptAndPut(String key,
InputStream input) |
OutputStream |
openPutStream(String key,
String contentTag) |
String |
toString() |
public FileLruCache(Context context, String tag, FileLruCache.Limits limits)
public InputStream get(String key) throws IOException
IOException
public InputStream get(String key, String contentTag) throws IOException
IOException
public OutputStream openPutStream(String key, String contentTag) throws IOException
IOException
public void clearCache()
public InputStream interceptAndPut(String key, InputStream input) throws IOException
IOException