Module bus.http

Class DiskLruCache.Snapshot

java.lang.Object
org.miaixz.bus.http.cache.DiskLruCache.Snapshot
All Implemented Interfaces:
Closeable, AutoCloseable
Enclosing class:
DiskLruCache

public final class DiskLruCache.Snapshot extends Object implements Closeable
快照信息
  • Method Details

    • key

      public String key()
    • edit

      public DiskLruCache.Editor edit() throws IOException
      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.
      Throws:
      IOException
    • getSource

      public org.miaixz.bus.core.io.source.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()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable