Package 

Class DiskLruCache.Snapshot

  • All Implemented Interfaces:
    java.io.Closeable , java.lang.AutoCloseable

    
    public final class DiskLruCache.Snapshot
     implements Closeable
                        

    A snapshot of the values for an entry.

    • Method Summary

      Modifier and Type Method Description
      String key()
      DiskLruCache.Editor edit() Returns an editor for this snapshot's entry, or null if either the entry has changed sincethis snapshot was created or if another edit is in progress.
      Source getSource(int index) Returns the unbuffered stream with the value for {@code index}.
      long getLength(int index) Returns the byte length of the value for {@code index}.
      void close()
      • Methods inherited from class java.io.Closeable

        close
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • edit

        @Nullable() DiskLruCache.Editor edit()

        Returns an editor for this snapshot's entry, or null if either the entry has changed sincethis snapshot was created or if another edit is in progress.

      • getSource

         Source getSource(int index)

        Returns the unbuffered stream with the value for {@code index}.

      • getLength

         long getLength(int index)

        Returns the byte length of the value for {@code index}.