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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      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.
      InputStream getInputStream(int index) Returns the unbuffered stream with the value for index.
      String getString(int index) Returns the string value for index.
      long getLength(int index) Returns the byte length of the value for index.
      void close()
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • edit

         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.

      • getString

         String getString(int index)

        Returns the string value for index.

      • getLength

         long getLength(int index)

        Returns the byte length of the value for index.