类 DiskLruCache.Snapshot
java.lang.Object
com.lark.oapi.okhttp.internal.cache.DiskLruCache.Snapshot
- 所有已实现的接口:
Closeable,AutoCloseable
- 封闭类:
DiskLruCache
A snapshot of the values for an entry.
-
方法概要
修饰符和类型方法说明voidclose()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.longgetLength(int index) Returns the byte length of the value forindex.getSource(int index) Returns the unbuffered stream with the value forindex.key()
-
方法详细资料
-
key
-
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.- 抛出:
IOException
-
getSource
Returns the unbuffered stream with the value forindex. -
getLength
public long getLength(int index) Returns the byte length of the value forindex. -
close
public void close()- 指定者:
close在接口中AutoCloseable- 指定者:
close在接口中Closeable
-