public final class DiskLruCache.Snapshot
extends java.lang.Object
implements java.io.Closeable
限定符和类型 | 方法和说明 |
---|---|
void |
close() |
DiskLruCache.Editor |
edit()
Returns an editor for this snapshot's entry, or null if either the
entry has changed since this snapshot was created or if another edit
is in progress.
|
java.io.InputStream |
getInputStream(int index)
Returns the unbuffered stream with the value for
index . |
long |
getLength(int index)
Returns the byte length of the value for
index . |
java.lang.String |
getString(int index)
Returns the string value for
index . |
public DiskLruCache.Editor edit() throws java.io.IOException
java.io.IOException
public java.io.InputStream getInputStream(int index)
index
.public java.lang.String getString(int index) throws java.io.IOException
index
.java.io.IOException
public long getLength(int index)
index
.public void close()
close
在接口中 java.io.Closeable
close
在接口中 java.lang.AutoCloseable