public final class DiskLruCache.Editor
extends java.lang.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.
|
java.io.File |
getFile(int index) |
java.lang.String |
getString(int index)
Returns the last committed value as a string, or null if no value
has been committed.
|
void |
set(int index,
java.lang.String value)
Sets the value at
index to value . |
public java.lang.String getString(int index) throws java.io.IOException
java.io.IOException
public java.io.File getFile(int index) throws java.io.IOException
java.io.IOException
public void set(int index, java.lang.String value) throws java.io.IOException
index
to value
.java.io.IOException
public void commit() throws java.io.IOException
java.io.IOException
public void abort() throws java.io.IOException
java.io.IOException
public void abortUnlessCommitted()