Class DiskLruCache.Snapshot

    • Method Summary

      Modifier and Type Method and Description
      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.
      okio.Source getSource(int index)
      Returns the unbuffered stream with the value for index.
      String key()
       
    • Method Detail

      • 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 okio.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()