public final class AndroidDiskLruCache.Snapshot
extends java.lang.Object
implements java.io.Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
AndroidDiskLruCache.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.
|
java.io.InputStream |
getInputStream(int index)
Returns the unbuffered stream with the value for
index. |
java.lang.String |
getString(int index)
Returns the string value for
index. |
public AndroidDiskLruCache.Editor edit() throws java.io.IOException
java.io.IOExceptionpublic java.io.InputStream getInputStream(int index)
index.public java.lang.String getString(int index)
throws java.io.IOException
index.java.io.IOExceptionpublic void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseable