|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jakewharton.disklrucache.DiskLruCache.Snapshot
public final class DiskLruCache.Snapshot
A snapshot of the values for an entry.
Method Summary | |
---|---|
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 . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public DiskLruCache.Editor edit() throws IOException
IOException
public InputStream getInputStream(int index)
index
.
public String getString(int index) throws IOException
index
.
IOException
public long getLength(int index)
index
.
public void close()
close
in interface Closeable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |