Package com.bumptech.glide.disklrucache
Class DiskLruCache.Value
- java.lang.Object
-
- com.bumptech.glide.disklrucache.DiskLruCache.Value
-
- Enclosing class:
- DiskLruCache
public final class DiskLruCache.Value extends java.lang.ObjectA snapshot of the values for an entry.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DiskLruCache.Editoredit()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.FilegetFile(int index)longgetLength(int index)Returns the byte length of the value forindex.java.lang.StringgetString(int index)Returns the string value forindex.
-
-
-
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.IOExceptionReturns the string value forindex.- Throws:
java.io.IOException
-
getLength
public long getLength(int index)
Returns the byte length of the value forindex.
-
-