public final class okhttp3.Cache implements java.io.Closeable, java.io.Flushable
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: okhttp3.Cache
super_class: java.lang.Object
{
private static final int VERSION;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 201105
private static final int ENTRY_METADATA;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 0
private static final int ENTRY_BODY;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1
private static final int ENTRY_COUNT;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 2
final okhttp3.internal.cache.InternalCache internalCache;
descriptor: Lokhttp3/internal/cache/InternalCache;
flags: (0x0010) ACC_FINAL
final okhttp3.internal.cache.DiskLruCache cache;
descriptor: Lokhttp3/internal/cache/DiskLruCache;
flags: (0x0010) ACC_FINAL
int writeSuccessCount;
descriptor: I
flags: (0x0000)
int writeAbortCount;
descriptor: I
flags: (0x0000)
private int networkCount;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int hitCount;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int requestCount;
descriptor: I
flags: (0x0002) ACC_PRIVATE
public void <init>(java.io.File, long);
descriptor: (Ljava/io/File;J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
lload 2
getstatic okhttp3.internal.io.FileSystem.SYSTEM:Lokhttp3/internal/io/FileSystem;
invokespecial okhttp3.Cache.<init>:(Ljava/io/File;JLokhttp3/internal/io/FileSystem;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lokhttp3/Cache;
0 2 1 directory Ljava/io/File;
0 2 2 maxSize J
MethodParameters:
Name Flags
directory
maxSize
void <init>(java.io.File, long, okhttp3.internal.io.FileSystem);
descriptor: (Ljava/io/File;JLokhttp3/internal/io/FileSystem;)V
flags: (0x0000)
Code:
stack=7, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 4 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new okhttp3.Cache$1
dup
aload 0
invokespecial okhttp3.Cache$1.<init>:(Lokhttp3/Cache;)V
putfield okhttp3.Cache.internalCache:Lokhttp3/internal/cache/InternalCache;
2: aload 0
aload 4
aload 1
ldc 201105
iconst_2
lload 2
invokestatic okhttp3.internal.cache.DiskLruCache.create:(Lokhttp3/internal/io/FileSystem;Ljava/io/File;IIJ)Lokhttp3/internal/cache/DiskLruCache;
putfield okhttp3.Cache.cache:Lokhttp3/internal/cache/DiskLruCache;
3: return
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lokhttp3/Cache;
0 4 1 directory Ljava/io/File;
0 4 2 maxSize J
0 4 4 fileSystem Lokhttp3/internal/io/FileSystem;
MethodParameters:
Name Flags
directory
maxSize
fileSystem
public static java.lang.String key(okhttp3.HttpUrl);
descriptor: (Lokhttp3/HttpUrl;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual okhttp3.HttpUrl.toString:()Ljava/lang/String;
invokestatic okio.ByteString.encodeUtf8:(Ljava/lang/String;)Lokio/ByteString;
invokevirtual okio.ByteString.md5:()Lokio/ByteString;
invokevirtual okio.ByteString.hex:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 url Lokhttp3/HttpUrl;
MethodParameters:
Name Flags
url
okhttp3.Response get(okhttp3.Request);
descriptor: (Lokhttp3/Request;)Lokhttp3/Response;
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 0: new java.lang.Error
dup
ldc "Unresolved compilation problem: \n\tNullable cannot be resolved to a type\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lokhttp3/Cache;
RuntimeInvisibleAnnotations:
Nullable()
RuntimeInvisibleTypeAnnotations:
METHOD_RETURN
Nullable()
MethodParameters:
Name Flags
request
okhttp3.internal.cache.CacheRequest put(okhttp3.Response);
descriptor: (Lokhttp3/Response;)Lokhttp3/internal/cache/CacheRequest;
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 0: new java.lang.Error
dup
ldc "Unresolved compilation problem: \n\tNullable cannot be resolved to a type\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lokhttp3/Cache;
RuntimeInvisibleAnnotations:
Nullable()
RuntimeInvisibleTypeAnnotations:
METHOD_RETURN
Nullable()
MethodParameters:
Name Flags
response
void remove(okhttp3.Request);
descriptor: (Lokhttp3/Request;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield okhttp3.Cache.cache:Lokhttp3/internal/cache/DiskLruCache;
aload 1
invokevirtual okhttp3.Request.url:()Lokhttp3/HttpUrl;
invokestatic okhttp3.Cache.key:(Lokhttp3/HttpUrl;)Ljava/lang/String;
invokevirtual okhttp3.internal.cache.DiskLruCache.remove:(Ljava/lang/String;)Z
pop
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lokhttp3/Cache;
0 2 1 request Lokhttp3/Request;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
request
void update(okhttp3.Response, okhttp3.Response);
descriptor: (Lokhttp3/Response;Lokhttp3/Response;)V
flags: (0x0000)
Code:
stack=3, locals=6, args_size=3
start local 0 start local 1 start local 2 0: new okhttp3.Cache$Entry
dup
aload 2
invokespecial okhttp3.Cache$Entry.<init>:(Lokhttp3/Response;)V
astore 3
start local 3 1: aload 1
invokevirtual okhttp3.Response.body:()Lokhttp3/ResponseBody;
checkcast okhttp3.Cache$CacheResponseBody
getfield okhttp3.Cache$CacheResponseBody.snapshot:Lokhttp3/internal/cache/DiskLruCache$Snapshot;
astore 4
start local 4 2: aconst_null
astore 5
start local 5 3: aload 4
invokevirtual okhttp3.internal.cache.DiskLruCache$Snapshot.edit:()Lokhttp3/internal/cache/DiskLruCache$Editor;
astore 5
4: aload 5
ifnull 10
5: aload 3
aload 5
invokevirtual okhttp3.Cache$Entry.writeTo:(Lokhttp3/internal/cache/DiskLruCache$Editor;)V
6: aload 5
invokevirtual okhttp3.internal.cache.DiskLruCache$Editor.commit:()V
7: goto 10
StackMap locals: okhttp3.Cache okhttp3.Response okhttp3.Response okhttp3.Cache$Entry okhttp3.internal.cache.DiskLruCache$Snapshot okhttp3.internal.cache.DiskLruCache$Editor
StackMap stack: java.io.IOException
8: pop
9: aload 0
aload 5
invokevirtual okhttp3.Cache.abortQuietly:(Lokhttp3/internal/cache/DiskLruCache$Editor;)V
10: StackMap locals:
StackMap stack:
return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lokhttp3/Cache;
0 11 1 cached Lokhttp3/Response;
0 11 2 network Lokhttp3/Response;
1 11 3 entry Lokhttp3/Cache$Entry;
2 11 4 snapshot Lokhttp3/internal/cache/DiskLruCache$Snapshot;
3 11 5 editor Lokhttp3/internal/cache/DiskLruCache$Editor;
Exception table:
from to target type
3 7 8 Class java.io.IOException
MethodParameters:
Name Flags
cached
network
private void abortQuietly(okhttp3.internal.cache.DiskLruCache$Editor);
descriptor: (Lokhttp3/internal/cache/DiskLruCache$Editor;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 0: new java.lang.Error
dup
ldc "Unresolved compilation problem: \n\tNullable cannot be resolved to a type\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lokhttp3/Cache;
RuntimeInvisibleTypeAnnotations:
METHOD_FORMAL_PARAMETER
Nullable()
RuntimeInvisibleParameterAnnotations:
0:
Nullable()
MethodParameters:
Name Flags
editor
public void initialize();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield okhttp3.Cache.cache:Lokhttp3/internal/cache/DiskLruCache;
invokevirtual okhttp3.internal.cache.DiskLruCache.initialize:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lokhttp3/Cache;
Exceptions:
throws java.io.IOException
public void delete();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield okhttp3.Cache.cache:Lokhttp3/internal/cache/DiskLruCache;
invokevirtual okhttp3.internal.cache.DiskLruCache.delete:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lokhttp3/Cache;
Exceptions:
throws java.io.IOException
public void evictAll();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield okhttp3.Cache.cache:Lokhttp3/internal/cache/DiskLruCache;
invokevirtual okhttp3.internal.cache.DiskLruCache.evictAll:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lokhttp3/Cache;
Exceptions:
throws java.io.IOException
public java.util.Iterator<java.lang.String> urls();
descriptor: ()Ljava/util/Iterator;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: new okhttp3.Cache$2
dup
invokespecial okhttp3.Cache$2.<init>:()V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lokhttp3/Cache;
Exceptions:
throws java.io.IOException
Signature: ()Ljava/util/Iterator<Ljava/lang/String;>;
public synchronized int writeAbortCount();
descriptor: ()I
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield okhttp3.Cache.writeAbortCount:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lokhttp3/Cache;
public synchronized int writeSuccessCount();
descriptor: ()I
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield okhttp3.Cache.writeSuccessCount:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lokhttp3/Cache;
public long size();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield okhttp3.Cache.cache:Lokhttp3/internal/cache/DiskLruCache;
invokevirtual okhttp3.internal.cache.DiskLruCache.size:()J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lokhttp3/Cache;
Exceptions:
throws java.io.IOException
public long maxSize();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield okhttp3.Cache.cache:Lokhttp3/internal/cache/DiskLruCache;
invokevirtual okhttp3.internal.cache.DiskLruCache.getMaxSize:()J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lokhttp3/Cache;
public void flush();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield okhttp3.Cache.cache:Lokhttp3/internal/cache/DiskLruCache;
invokevirtual okhttp3.internal.cache.DiskLruCache.flush:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lokhttp3/Cache;
Exceptions:
throws java.io.IOException
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield okhttp3.Cache.cache:Lokhttp3/internal/cache/DiskLruCache;
invokevirtual okhttp3.internal.cache.DiskLruCache.close:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lokhttp3/Cache;
Exceptions:
throws java.io.IOException
public java.io.File directory();
descriptor: ()Ljava/io/File;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield okhttp3.Cache.cache:Lokhttp3/internal/cache/DiskLruCache;
invokevirtual okhttp3.internal.cache.DiskLruCache.getDirectory:()Ljava/io/File;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lokhttp3/Cache;
public boolean isClosed();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield okhttp3.Cache.cache:Lokhttp3/internal/cache/DiskLruCache;
invokevirtual okhttp3.internal.cache.DiskLruCache.isClosed:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lokhttp3/Cache;
synchronized void trackResponse(okhttp3.internal.cache.CacheStrategy);
descriptor: (Lokhttp3/internal/cache/CacheStrategy;)V
flags: (0x0020) ACC_SYNCHRONIZED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
dup
getfield okhttp3.Cache.requestCount:I
iconst_1
iadd
putfield okhttp3.Cache.requestCount:I
1: aload 1
getfield okhttp3.internal.cache.CacheStrategy.networkRequest:Lokhttp3/Request;
ifnull 4
2: aload 0
dup
getfield okhttp3.Cache.networkCount:I
iconst_1
iadd
putfield okhttp3.Cache.networkCount:I
3: goto 6
StackMap locals:
StackMap stack:
4: aload 1
getfield okhttp3.internal.cache.CacheStrategy.cacheResponse:Lokhttp3/Response;
ifnull 6
5: aload 0
dup
getfield okhttp3.Cache.hitCount:I
iconst_1
iadd
putfield okhttp3.Cache.hitCount:I
6: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lokhttp3/Cache;
0 7 1 cacheStrategy Lokhttp3/internal/cache/CacheStrategy;
MethodParameters:
Name Flags
cacheStrategy
synchronized void trackConditionalCacheHit();
descriptor: ()V
flags: (0x0020) ACC_SYNCHRONIZED
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
dup
getfield okhttp3.Cache.hitCount:I
iconst_1
iadd
putfield okhttp3.Cache.hitCount:I
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lokhttp3/Cache;
public synchronized int networkCount();
descriptor: ()I
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield okhttp3.Cache.networkCount:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lokhttp3/Cache;
public synchronized int hitCount();
descriptor: ()I
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield okhttp3.Cache.hitCount:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lokhttp3/Cache;
public synchronized int requestCount();
descriptor: ()I
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield okhttp3.Cache.requestCount:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lokhttp3/Cache;
static int readInt(okio.BufferedSource);
descriptor: (Lokio/BufferedSource;)I
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=4, args_size=1
start local 0 0: aload 0
invokeinterface okio.BufferedSource.readDecimalLong:()J
lstore 1
start local 1 1: aload 0
invokeinterface okio.BufferedSource.readUtf8LineStrict:()Ljava/lang/String;
astore 3
start local 3 2: lload 1
lconst_0
lcmp
iflt 3
lload 1
ldc 2147483647
lcmp
ifgt 3
aload 3
invokevirtual java.lang.String.isEmpty:()Z
ifne 4
3: StackMap locals: long java.lang.String
StackMap stack:
new java.io.IOException
dup
new java.lang.StringBuilder
dup
ldc "expected an int but was \""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
lload 1
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\""
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
lload 1
l2i
5: ireturn
end local 3 end local 1 6: StackMap locals: okio.BufferedSource
StackMap stack: java.lang.NumberFormatException
astore 1
start local 1 7: new java.io.IOException
dup
aload 1
invokevirtual java.lang.NumberFormatException.getMessage:()Ljava/lang/String;
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 source Lokio/BufferedSource;
1 6 1 result J
2 6 3 line Ljava/lang/String;
7 8 1 e Ljava/lang/NumberFormatException;
Exception table:
from to target type
0 5 6 Class java.lang.NumberFormatException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
source
}
SourceFile: "Cache.java"
NestMembers:
okhttp3.Cache$1 okhttp3.Cache$2 okhttp3.Cache$CacheRequestImpl okhttp3.Cache$CacheRequestImpl$1 okhttp3.Cache$CacheResponseBody okhttp3.Cache$CacheResponseBody$1 okhttp3.Cache$Entry
InnerClasses:
okhttp3.Cache$1
okhttp3.Cache$2
private final CacheRequestImpl = okhttp3.Cache$CacheRequestImpl of okhttp3.Cache
private CacheResponseBody = okhttp3.Cache$CacheResponseBody of okhttp3.Cache
private final Entry = okhttp3.Cache$Entry of okhttp3.Cache
public final Editor = okhttp3.internal.cache.DiskLruCache$Editor of okhttp3.internal.cache.DiskLruCache
public final Snapshot = okhttp3.internal.cache.DiskLruCache$Snapshot of okhttp3.internal.cache.DiskLruCache