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.
|
long |
getLength(int index)
Returns the byte length of the value for
index. |
Source |
getSource(int index)
Returns the unbuffered stream with the value for
index. |
String |
key() |
public String key()
@Nullable public DiskLruCache.Editor edit() throws IOException
IOExceptionpublic Source getSource(int index)
index.public long getLength(int index)
index.public void close()
close 在接口中 Closeableclose 在接口中 AutoCloseableCopyright © 2024. All rights reserved.