Class DiskLruCache.Value

  • Enclosing class:
    DiskLruCache

    public final class DiskLruCache.Value
    extends java.lang.Object
    A snapshot of the values for an entry.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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.
      java.io.File getFile​(int index)  
      long getLength​(int index)
      Returns the byte length of the value for index.
      java.lang.String getString​(int index)
      Returns the string value for index.
      • Methods inherited from class java.lang.Object

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

      • edit

        public DiskLruCache.Editor edit()
                                 throws java.io.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:
        java.io.IOException
      • getFile

        public java.io.File getFile​(int index)
      • getString

        public java.lang.String getString​(int index)
                                   throws java.io.IOException
        Returns the string value for index.
        Throws:
        java.io.IOException
      • getLength

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