private final class DiskLruCache.Entry
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) java.io.File[] |
cleanFiles |
(package private) DiskLruCache.Editor |
currentEditor
The ongoing edit or null if this entry is not being edited.
|
(package private) java.io.File[] |
dirtyFiles |
(package private) java.lang.String |
key |
(package private) long[] |
lengths
Lengths of this entry's files.
|
(package private) boolean |
readable
True if this entry has ever been published.
|
(package private) long |
sequenceNumber
The sequence number of the most recently committed edit to this entry.
|
Constructor and Description |
---|
Entry(java.lang.String key) |
Modifier and Type | Method and Description |
---|---|
private java.io.IOException |
invalidLengths(java.lang.String[] strings) |
(package private) void |
setLengths(java.lang.String[] strings)
Set lengths using decimal numbers like "10123".
|
(package private) DiskLruCache.Snapshot |
snapshot()
Returns a snapshot of this entry.
|
(package private) void |
writeLengths(okio.BufferedSink writer)
Append space-prefixed lengths to
writer . |
final java.lang.String key
final long[] lengths
final java.io.File[] cleanFiles
final java.io.File[] dirtyFiles
boolean readable
DiskLruCache.Editor currentEditor
long sequenceNumber
void setLengths(java.lang.String[] strings) throws java.io.IOException
java.io.IOException
void writeLengths(okio.BufferedSink writer) throws java.io.IOException
writer
.java.io.IOException
private java.io.IOException invalidLengths(java.lang.String[] strings) throws java.io.IOException
java.io.IOException
DiskLruCache.Snapshot snapshot()