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