com.bumptech.glide.disklrucache
Class DiskLruCache.Value

java.lang.Object
  extended by com.bumptech.glide.disklrucache.DiskLruCache.Value
Enclosing class:
DiskLruCache

public final class DiskLruCache.Value
extends Object

A snapshot of the values for an entry.


Method Summary
 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.
 File getFile(int index)
           
 long getLength(int index)
          Returns the byte length of the value for index.
 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 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

getFile

public File getFile(int index)

getString

public String getString(int index)
                 throws IOException
Returns the string value for index.

Throws:
IOException

getLength

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