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.OutputStream |
newOutputStream()
Returns a new unbuffered output stream to write the value
when writing to the filesystem, this edit will be aborted when
commit() is called. |
RandomAccessOutput |
updateRandomAccessOutput() |
public RandomAccessOutput updateRandomAccessOutput()
public java.io.OutputStream newOutputStream() throws java.io.IOException
commit()
is called. The returned output stream does not throw
IOExceptions.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()