public final class DiskLruCache.Editor extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
abort()
Aborts this edit.
|
void |
abortUnlessCommitted()
|
void |
commit()
Commits this edit so it is visible to readers.
|
File |
getFile(int index)
|
String |
getString(int index)
Returns the last committed value as a string, or null if no value has been committed.
|
void |
set(int index, String
Sets the value at
index to
value.
|
public StringgetString(int index) throws IOException
IOException
public FilegetFile(int index) throws IOException
IOException
public void set(int index,
String value)
throws IOException
index to
value.
IOException
public void commit()
throws IOException
IOException
public void abort()
throws IOException
IOException
public void abortUnlessCommitted()