类 DiskLruCache.Snapshot

java.lang.Object
com.lark.oapi.okhttp.internal.cache.DiskLruCache.Snapshot
所有已实现的接口:
Closeable, AutoCloseable
封闭类:
DiskLruCache

public final class DiskLruCache.Snapshot extends Object implements Closeable
A snapshot of the values for an entry.
  • 方法详细资料

    • key

      public String 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

      public Source getSource(int index)
      Returns the unbuffered stream with the value for index.
    • getLength

      public long getLength(int index)
      Returns the byte length of the value for index.
    • close

      public void close()
      指定者:
      close 在接口中 AutoCloseable
      指定者:
      close 在接口中 Closeable