public final class DiskLruCache.Snapshot extends Object implements Closeable
| 限定符和类型 | 方法和说明 |
|---|---|
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. |
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 void close()
close 在接口中 Closeableclose 在接口中 AutoCloseable