mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
161 lines
4.9 KiB
Smali
161 lines
4.9 KiB
Smali
.class final Lokhttp3/Cache$CacheResponseBody;
|
|
.super Lokhttp3/ResponseBody;
|
|
.source "Cache.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lokhttp3/Cache;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x1a
|
|
name = "CacheResponseBody"
|
|
.end annotation
|
|
|
|
.annotation runtime Lkotlin/Metadata;
|
|
bv = {
|
|
0x1,
|
|
0x0,
|
|
0x3
|
|
}
|
|
d1 = {
|
|
"\u00000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0010\t\n\u0002\u0018\u0002\n\u0002\u0008\u0002\u0008\u0002\u0018\u00002\u00020\u0001B%\u0012\n\u0010\u0002\u001a\u00060\u0003R\u00020\u0004\u0012\u0008\u0010\u0005\u001a\u0004\u0018\u00010\u0006\u0012\u0008\u0010\u0007\u001a\u0004\u0018\u00010\u0006\u00a2\u0006\u0002\u0010\u0008J\u0008\u0010\u0007\u001a\u00020\rH\u0016J\n\u0010\u0005\u001a\u0004\u0018\u00010\u000eH\u0016J\u0008\u0010\u000f\u001a\u00020\nH\u0016R\u000e\u0010\t\u001a\u00020\nX\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u0010\u0010\u0007\u001a\u0004\u0018\u00010\u0006X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u0010\u0010\u0005\u001a\u0004\u0018\u00010\u0006X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u0015\u0010\u0002\u001a\u00060\u0003R\u00020\u0004\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u000b\u0010\u000c\u00a8\u0006\u0010"
|
|
}
|
|
d2 = {
|
|
"Lokhttp3/Cache$CacheResponseBody;",
|
|
"Lokhttp3/ResponseBody;",
|
|
"snapshot",
|
|
"Lokhttp3/internal/cache/DiskLruCache$Snapshot;",
|
|
"Lokhttp3/internal/cache/DiskLruCache;",
|
|
"contentType",
|
|
"",
|
|
"contentLength",
|
|
"(Lokhttp3/internal/cache/DiskLruCache$Snapshot;Ljava/lang/String;Ljava/lang/String;)V",
|
|
"bodySource",
|
|
"Lokio/BufferedSource;",
|
|
"getSnapshot",
|
|
"()Lokhttp3/internal/cache/DiskLruCache$Snapshot;",
|
|
"",
|
|
"Lokhttp3/MediaType;",
|
|
"source",
|
|
"okhttp"
|
|
}
|
|
k = 0x1
|
|
mv = {
|
|
0x1,
|
|
0x4,
|
|
0x0
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private final bodySource:Lokio/BufferedSource;
|
|
|
|
.field private final contentLength:Ljava/lang/String;
|
|
|
|
.field private final contentType:Ljava/lang/String;
|
|
|
|
.field private final snapshot:Lokhttp3/internal/cache/DiskLruCache$Snapshot;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lokhttp3/internal/cache/DiskLruCache$Snapshot;Ljava/lang/String;Ljava/lang/String;)V
|
|
.locals 1
|
|
|
|
const-string v0, "snapshot"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 671
|
|
invoke-direct {p0}, Lokhttp3/ResponseBody;-><init>()V
|
|
|
|
iput-object p1, p0, Lokhttp3/Cache$CacheResponseBody;->snapshot:Lokhttp3/internal/cache/DiskLruCache$Snapshot;
|
|
|
|
iput-object p2, p0, Lokhttp3/Cache$CacheResponseBody;->contentType:Ljava/lang/String;
|
|
|
|
iput-object p3, p0, Lokhttp3/Cache$CacheResponseBody;->contentLength:Ljava/lang/String;
|
|
|
|
const/4 p2, 0x1
|
|
|
|
.line 675
|
|
invoke-virtual {p1, p2}, Lokhttp3/internal/cache/DiskLruCache$Snapshot;->getSource(I)Lokio/Source;
|
|
|
|
move-result-object p1
|
|
|
|
.line 676
|
|
new-instance p2, Lokhttp3/Cache$CacheResponseBody$1;
|
|
|
|
invoke-direct {p2, p0, p1, p1}, Lokhttp3/Cache$CacheResponseBody$1;-><init>(Lokhttp3/Cache$CacheResponseBody;Lokio/Source;Lokio/Source;)V
|
|
|
|
check-cast p2, Lokio/Source;
|
|
|
|
.line 682
|
|
invoke-static {p2}, Lokio/Okio;->buffer(Lokio/Source;)Lokio/BufferedSource;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lokhttp3/Cache$CacheResponseBody;->bodySource:Lokio/BufferedSource;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public contentLength()J
|
|
.locals 2
|
|
|
|
iget-object p0, p0, Lokhttp3/Cache$CacheResponseBody;->contentLength:Ljava/lang/String;
|
|
|
|
const-wide/16 v0, -0x1
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
.line 687
|
|
invoke-static {p0, v0, v1}, Lokhttp3/internal/Util;->toLongOrDefault(Ljava/lang/String;J)J
|
|
|
|
move-result-wide v0
|
|
|
|
:cond_0
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public contentType()Lokhttp3/MediaType;
|
|
.locals 1
|
|
|
|
iget-object p0, p0, Lokhttp3/Cache$CacheResponseBody;->contentType:Ljava/lang/String;
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
.line 685
|
|
sget-object v0, Lokhttp3/MediaType;->Companion:Lokhttp3/MediaType$Companion;
|
|
|
|
invoke-virtual {v0, p0}, Lokhttp3/MediaType$Companion;->parse(Ljava/lang/String;)Lokhttp3/MediaType;
|
|
|
|
move-result-object p0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p0, 0x0
|
|
|
|
:goto_0
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public final getSnapshot()Lokhttp3/internal/cache/DiskLruCache$Snapshot;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lokhttp3/Cache$CacheResponseBody;->snapshot:Lokhttp3/internal/cache/DiskLruCache$Snapshot;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public source()Lokio/BufferedSource;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lokhttp3/Cache$CacheResponseBody;->bodySource:Lokio/BufferedSource;
|
|
|
|
return-object p0
|
|
.end method
|