public final class DiskLruCache.Editor extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
abort()
中止这个编辑。这释放了编辑锁,因此可以在同一个键上启动另一个编辑
|
void |
abortUnlessCommitted() |
void |
commit() |
Sink |
newSink(int index) |
Source |
newSource(int index) |
public Source newSource(int index)
public Sink newSink(int index)
public void commit()
throws IOException
IOExceptionpublic void abort()
throws IOException
IOException - 异常public void abortUnlessCommitted()
Copyright © 2020. All rights reserved.