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 value)
Sets the value at
index to value. |
public String getString(int index) throws IOException
IOExceptionpublic File getFile(int index) throws IOException
IOExceptionpublic void set(int index,
String value)
throws IOException
index to value.IOExceptionpublic void commit()
throws IOException
IOExceptionpublic void abort()
throws IOException
IOExceptionpublic void abortUnlessCommitted()