java.lang.Object
org.miaixz.bus.http.cache.DiskLruCache.Snapshot
- All Implemented Interfaces:
Closeable,AutoCloseable
- Enclosing class:
DiskLruCache
快照信息
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()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.longgetLength(int index) Returns the byte length of the value forindex.org.miaixz.bus.core.io.source.SourcegetSource(int index) Returns the unbuffered stream with the value forindex.key()
-
Method Details
-
key
-
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.- Throws:
IOException
-
getSource
public org.miaixz.bus.core.io.source.Source getSource(int index) Returns the unbuffered stream with the value forindex. -
getLength
public long getLength(int index) Returns the byte length of the value forindex. -
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-