Package com.inmobi.ads.cache.diskcache
Class DiskLruCache.Snapshot
-
- All Implemented Interfaces:
-
java.io.Closeable,java.lang.AutoCloseable
public final class DiskLruCache.Snapshot implements Closeable
A snapshot of the values for an entry.
-
-
Method Summary
Modifier and Type Method Description DiskLruCache.Editoredit()Returns an editor for this snapshot's entry, or null if either the entry has changed since this snapshot was created or if another edit is in progress. InputStreamgetInputStream(int index)Returns the unbuffered stream with the value for index.StringgetString(int index)Returns the string value for index.longgetLength(int index)Returns the byte length of the value for index.voidclose()-
-
Method Detail
-
edit
DiskLruCache.Editor edit()
Returns an editor for this snapshot's entry, or null if either the entry has changed since this snapshot was created or if another edit is in progress.
-
getInputStream
InputStream getInputStream(int index)
Returns the unbuffered stream with the value for
index.
-
getLength
long getLength(int index)
Returns the byte length of the value for
index.
-
close
void close()
-
-
-
-