mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-25 16:42:30 -06:00
897 lines
24 KiB
Smali
897 lines
24 KiB
Smali
.class public abstract Lokhttp3/ResponseBody;
|
|
.super Ljava/lang/Object;
|
|
.source "ResponseBody.kt"
|
|
|
|
# interfaces
|
|
.implements Ljava/io/Closeable;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lokhttp3/ResponseBody$BomAwareReader;,
|
|
Lokhttp3/ResponseBody$Companion;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/SourceDebugExtension;
|
|
value = "SMAP\nResponseBody.kt\nKotlin\n*S Kotlin\n*F\n+ 1 ResponseBody.kt\nokhttp3/ResponseBody\n*L\n1#1,321:1\n140#1,11:322\n140#1,11:333\n*E\n*S KotlinDebug\n*F\n+ 1 ResponseBody.kt\nokhttp3/ResponseBody\n*L\n124#1,11:322\n134#1,11:333\n*E\n"
|
|
.end annotation
|
|
|
|
.annotation runtime Lkotlin/Metadata;
|
|
bv = {
|
|
0x1,
|
|
0x0,
|
|
0x3
|
|
}
|
|
d1 = {
|
|
"\u0000b\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0012\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\u0008\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0008\n\u0002\u0008\u0002\n\u0002\u0010\t\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0010\u000e\n\u0002\u0008\u0003\u0008&\u0018\u0000 !2\u00020\u0001:\u0002 !B\u0005\u00a2\u0006\u0002\u0010\u0002J\u0006\u0010\u0005\u001a\u00020\u0006J\u0006\u0010\u0007\u001a\u00020\u0008J\u0006\u0010\t\u001a\u00020\nJ\u0006\u0010\u000b\u001a\u00020\u0004J\u0008\u0010\u000c\u001a\u00020\rH\u0002J\u0008\u0010\u000e\u001a\u00020\u000fH\u0016J@\u0010\u0010\u001a\u0002H\u0011\"\u0008\u0008\u0000\u0010\u0011*\u00020\u00122\u0012\u0010\u0013\u001a\u000e\u0012\u0004\u0012\u00020\u0015\u0012\u0004\u0012\u0002H\u00110\u00142\u0012\u0010\u0016\u001a\u000e\u0012\u0004\u0012\u0002H\u0011\u0012\u0004\u0012\u00020\u00170\u0014H\u0082\u0008\u00a2\u0006\u0002\u0010\u0018J\u0008\u0010\u0019\u001a\u00020\u001aH&J\n\u0010\u001b\u001a\u0004\u0018\u00010\u001cH&J\u0008\u0010\u001d\u001a\u00020\u0015H&J\u0006\u0010\u001e\u001a\u00020\u001fR\u0010\u0010\u0003\u001a\u0004\u0018\u00010\u0004X\u0082\u000e\u00a2\u0006\u0002\n\u0000\u00a8\u0006\""
|
|
}
|
|
d2 = {
|
|
"Lokhttp3/ResponseBody;",
|
|
"Ljava/io/Closeable;",
|
|
"()V",
|
|
"reader",
|
|
"Ljava/io/Reader;",
|
|
"byteStream",
|
|
"Ljava/io/InputStream;",
|
|
"byteString",
|
|
"Lokio/ByteString;",
|
|
"bytes",
|
|
"",
|
|
"charStream",
|
|
"charset",
|
|
"Ljava/nio/charset/Charset;",
|
|
"close",
|
|
"",
|
|
"consumeSource",
|
|
"T",
|
|
"",
|
|
"consumer",
|
|
"Lkotlin/Function1;",
|
|
"Lokio/BufferedSource;",
|
|
"sizeMapper",
|
|
"",
|
|
"(Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;",
|
|
"contentLength",
|
|
"",
|
|
"contentType",
|
|
"Lokhttp3/MediaType;",
|
|
"source",
|
|
"string",
|
|
"",
|
|
"BomAwareReader",
|
|
"Companion",
|
|
"okhttp"
|
|
}
|
|
k = 0x1
|
|
mv = {
|
|
0x1,
|
|
0x4,
|
|
0x0
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final Companion:Lokhttp3/ResponseBody$Companion;
|
|
|
|
|
|
# instance fields
|
|
.field private reader:Ljava/io/Reader;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 2
|
|
|
|
new-instance v0, Lokhttp3/ResponseBody$Companion;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {v0, v1}, Lokhttp3/ResponseBody$Companion;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
sput-object v0, Lokhttp3/ResponseBody;->Companion:Lokhttp3/ResponseBody$Companion;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 100
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private final charset()Ljava/nio/charset/Charset;
|
|
.locals 1
|
|
|
|
.line 190
|
|
invoke-virtual {p0}, Lokhttp3/ResponseBody;->contentType()Lokhttp3/MediaType;
|
|
|
|
move-result-object p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
sget-object v0, Lkotlin/text/Charsets;->UTF_8:Ljava/nio/charset/Charset;
|
|
|
|
invoke-virtual {p0, v0}, Lokhttp3/MediaType;->charset(Ljava/nio/charset/Charset;)Ljava/nio/charset/Charset;
|
|
|
|
move-result-object p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
sget-object p0, Lkotlin/text/Charsets;->UTF_8:Ljava/nio/charset/Charset;
|
|
|
|
:goto_0
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private final consumeSource(Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Lkotlin/jvm/functions/Function1<",
|
|
"-",
|
|
"Lokio/BufferedSource;",
|
|
"+TT;>;",
|
|
"Lkotlin/jvm/functions/Function1<",
|
|
"-TT;",
|
|
"Ljava/lang/Integer;",
|
|
">;)TT;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 140
|
|
invoke-virtual {p0}, Lokhttp3/ResponseBody;->contentLength()J
|
|
|
|
move-result-wide v0
|
|
|
|
const v2, 0x7fffffff
|
|
|
|
int-to-long v2, v2
|
|
|
|
cmp-long v2, v0, v2
|
|
|
|
if-gtz v2, :cond_2
|
|
|
|
.line 145
|
|
invoke-virtual {p0}, Lokhttp3/ResponseBody;->source()Lokio/BufferedSource;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Ljava/io/Closeable;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
move-object v3, v2
|
|
|
|
check-cast v3, Ljava/lang/Throwable;
|
|
|
|
const/4 v3, 0x1
|
|
|
|
:try_start_0
|
|
invoke-interface {p1, p0}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
invoke-static {v3}, Lkotlin/jvm/internal/InlineMarker;->finallyStart(I)V
|
|
|
|
invoke-static {p0, v2}, Lkotlin/io/CloseableKt;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V
|
|
|
|
invoke-static {v3}, Lkotlin/jvm/internal/InlineMarker;->finallyEnd(I)V
|
|
|
|
.line 146
|
|
invoke-interface {p2, p1}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Ljava/lang/Number;
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Number;->intValue()I
|
|
|
|
move-result p0
|
|
|
|
const-wide/16 v2, -0x1
|
|
|
|
cmp-long p2, v0, v2
|
|
|
|
if-eqz p2, :cond_1
|
|
|
|
int-to-long v2, p0
|
|
|
|
cmp-long p2, v0, v2
|
|
|
|
if-nez p2, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 148
|
|
:cond_0
|
|
new-instance p1, Ljava/io/IOException;
|
|
|
|
new-instance p2, Ljava/lang/StringBuilder;
|
|
|
|
const-string v2, "Content-Length ("
|
|
|
|
invoke-direct {p2, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p2, v0, v1}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p2
|
|
|
|
const-string v0, ") and stream length ("
|
|
|
|
invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p2, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
const-string p2, ") disagree"
|
|
|
|
invoke-virtual {p0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-direct {p1, p0}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast p1, Ljava/lang/Throwable;
|
|
|
|
throw p1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return-object p1
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
.line 145
|
|
:try_start_1
|
|
throw p1
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_1
|
|
|
|
:catchall_1
|
|
move-exception p2
|
|
|
|
invoke-static {v3}, Lkotlin/jvm/internal/InlineMarker;->finallyStart(I)V
|
|
|
|
invoke-static {p0, p1}, Lkotlin/io/CloseableKt;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V
|
|
|
|
invoke-static {v3}, Lkotlin/jvm/internal/InlineMarker;->finallyEnd(I)V
|
|
|
|
throw p2
|
|
|
|
.line 142
|
|
:cond_2
|
|
new-instance p0, Ljava/io/IOException;
|
|
|
|
new-instance p1, Ljava/lang/StringBuilder;
|
|
|
|
const-string p2, "Cannot buffer entire body for content length: "
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p1, v0, v1}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {p0, p1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static final create(Ljava/lang/String;Lokhttp3/MediaType;)Lokhttp3/ResponseBody;
|
|
.locals 1
|
|
.annotation runtime Lkotlin/jvm/JvmStatic;
|
|
.end annotation
|
|
|
|
sget-object v0, Lokhttp3/ResponseBody;->Companion:Lokhttp3/ResponseBody$Companion;
|
|
|
|
invoke-virtual {v0, p0, p1}, Lokhttp3/ResponseBody$Companion;->create(Ljava/lang/String;Lokhttp3/MediaType;)Lokhttp3/ResponseBody;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final create(Lokhttp3/MediaType;JLokio/BufferedSource;)Lokhttp3/ResponseBody;
|
|
.locals 1
|
|
.annotation runtime Lkotlin/Deprecated;
|
|
level = .enum Lkotlin/DeprecationLevel;->WARNING:Lkotlin/DeprecationLevel;
|
|
message = "Moved to extension function. Put the \'content\' argument first to fix Java"
|
|
replaceWith = .subannotation Lkotlin/ReplaceWith;
|
|
expression = "content.asResponseBody(contentType, contentLength)"
|
|
imports = {
|
|
"okhttp3.ResponseBody.Companion.asResponseBody"
|
|
}
|
|
.end subannotation
|
|
.end annotation
|
|
|
|
.annotation runtime Lkotlin/jvm/JvmStatic;
|
|
.end annotation
|
|
|
|
sget-object v0, Lokhttp3/ResponseBody;->Companion:Lokhttp3/ResponseBody$Companion;
|
|
|
|
invoke-virtual {v0, p0, p1, p2, p3}, Lokhttp3/ResponseBody$Companion;->create(Lokhttp3/MediaType;JLokio/BufferedSource;)Lokhttp3/ResponseBody;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final create(Lokhttp3/MediaType;Ljava/lang/String;)Lokhttp3/ResponseBody;
|
|
.locals 1
|
|
.annotation runtime Lkotlin/Deprecated;
|
|
level = .enum Lkotlin/DeprecationLevel;->WARNING:Lkotlin/DeprecationLevel;
|
|
message = "Moved to extension function. Put the \'content\' argument first to fix Java"
|
|
replaceWith = .subannotation Lkotlin/ReplaceWith;
|
|
expression = "content.toResponseBody(contentType)"
|
|
imports = {
|
|
"okhttp3.ResponseBody.Companion.toResponseBody"
|
|
}
|
|
.end subannotation
|
|
.end annotation
|
|
|
|
.annotation runtime Lkotlin/jvm/JvmStatic;
|
|
.end annotation
|
|
|
|
sget-object v0, Lokhttp3/ResponseBody;->Companion:Lokhttp3/ResponseBody$Companion;
|
|
|
|
invoke-virtual {v0, p0, p1}, Lokhttp3/ResponseBody$Companion;->create(Lokhttp3/MediaType;Ljava/lang/String;)Lokhttp3/ResponseBody;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final create(Lokhttp3/MediaType;Lokio/ByteString;)Lokhttp3/ResponseBody;
|
|
.locals 1
|
|
.annotation runtime Lkotlin/Deprecated;
|
|
level = .enum Lkotlin/DeprecationLevel;->WARNING:Lkotlin/DeprecationLevel;
|
|
message = "Moved to extension function. Put the \'content\' argument first to fix Java"
|
|
replaceWith = .subannotation Lkotlin/ReplaceWith;
|
|
expression = "content.toResponseBody(contentType)"
|
|
imports = {
|
|
"okhttp3.ResponseBody.Companion.toResponseBody"
|
|
}
|
|
.end subannotation
|
|
.end annotation
|
|
|
|
.annotation runtime Lkotlin/jvm/JvmStatic;
|
|
.end annotation
|
|
|
|
sget-object v0, Lokhttp3/ResponseBody;->Companion:Lokhttp3/ResponseBody$Companion;
|
|
|
|
invoke-virtual {v0, p0, p1}, Lokhttp3/ResponseBody$Companion;->create(Lokhttp3/MediaType;Lokio/ByteString;)Lokhttp3/ResponseBody;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final create(Lokhttp3/MediaType;[B)Lokhttp3/ResponseBody;
|
|
.locals 1
|
|
.annotation runtime Lkotlin/Deprecated;
|
|
level = .enum Lkotlin/DeprecationLevel;->WARNING:Lkotlin/DeprecationLevel;
|
|
message = "Moved to extension function. Put the \'content\' argument first to fix Java"
|
|
replaceWith = .subannotation Lkotlin/ReplaceWith;
|
|
expression = "content.toResponseBody(contentType)"
|
|
imports = {
|
|
"okhttp3.ResponseBody.Companion.toResponseBody"
|
|
}
|
|
.end subannotation
|
|
.end annotation
|
|
|
|
.annotation runtime Lkotlin/jvm/JvmStatic;
|
|
.end annotation
|
|
|
|
sget-object v0, Lokhttp3/ResponseBody;->Companion:Lokhttp3/ResponseBody$Companion;
|
|
|
|
invoke-virtual {v0, p0, p1}, Lokhttp3/ResponseBody$Companion;->create(Lokhttp3/MediaType;[B)Lokhttp3/ResponseBody;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final create(Lokio/BufferedSource;Lokhttp3/MediaType;J)Lokhttp3/ResponseBody;
|
|
.locals 1
|
|
.annotation runtime Lkotlin/jvm/JvmStatic;
|
|
.end annotation
|
|
|
|
sget-object v0, Lokhttp3/ResponseBody;->Companion:Lokhttp3/ResponseBody$Companion;
|
|
|
|
invoke-virtual {v0, p0, p1, p2, p3}, Lokhttp3/ResponseBody$Companion;->create(Lokio/BufferedSource;Lokhttp3/MediaType;J)Lokhttp3/ResponseBody;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final create(Lokio/ByteString;Lokhttp3/MediaType;)Lokhttp3/ResponseBody;
|
|
.locals 1
|
|
.annotation runtime Lkotlin/jvm/JvmStatic;
|
|
.end annotation
|
|
|
|
sget-object v0, Lokhttp3/ResponseBody;->Companion:Lokhttp3/ResponseBody$Companion;
|
|
|
|
invoke-virtual {v0, p0, p1}, Lokhttp3/ResponseBody$Companion;->create(Lokio/ByteString;Lokhttp3/MediaType;)Lokhttp3/ResponseBody;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final create([BLokhttp3/MediaType;)Lokhttp3/ResponseBody;
|
|
.locals 1
|
|
.annotation runtime Lkotlin/jvm/JvmStatic;
|
|
.end annotation
|
|
|
|
sget-object v0, Lokhttp3/ResponseBody;->Companion:Lokhttp3/ResponseBody$Companion;
|
|
|
|
invoke-virtual {v0, p0, p1}, Lokhttp3/ResponseBody$Companion;->create([BLokhttp3/MediaType;)Lokhttp3/ResponseBody;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final byteStream()Ljava/io/InputStream;
|
|
.locals 0
|
|
|
|
.line 112
|
|
invoke-virtual {p0}, Lokhttp3/ResponseBody;->source()Lokio/BufferedSource;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-interface {p0}, Lokio/BufferedSource;->inputStream()Ljava/io/InputStream;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public final byteString()Lokio/ByteString;
|
|
.locals 6
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 333
|
|
invoke-virtual {p0}, Lokhttp3/ResponseBody;->contentLength()J
|
|
|
|
move-result-wide v0
|
|
|
|
const v2, 0x7fffffff
|
|
|
|
int-to-long v2, v2
|
|
|
|
cmp-long v2, v0, v2
|
|
|
|
if-gtz v2, :cond_2
|
|
|
|
.line 338
|
|
invoke-virtual {p0}, Lokhttp3/ResponseBody;->source()Lokio/BufferedSource;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Ljava/io/Closeable;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
move-object v3, v2
|
|
|
|
check-cast v3, Ljava/lang/Throwable;
|
|
|
|
:try_start_0
|
|
move-object v3, p0
|
|
|
|
check-cast v3, Lokio/BufferedSource;
|
|
|
|
.line 134
|
|
invoke-interface {v3}, Lokio/BufferedSource;->readByteString()Lokio/ByteString;
|
|
|
|
move-result-object v3
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
invoke-static {p0, v2}, Lkotlin/io/CloseableKt;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V
|
|
|
|
invoke-virtual {v3}, Lokio/ByteString;->size()I
|
|
|
|
move-result p0
|
|
|
|
const-wide/16 v4, -0x1
|
|
|
|
cmp-long v2, v0, v4
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
int-to-long v4, p0
|
|
|
|
cmp-long v2, v0, v4
|
|
|
|
if-nez v2, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 341
|
|
:cond_0
|
|
new-instance v2, Ljava/io/IOException;
|
|
|
|
new-instance v3, Ljava/lang/StringBuilder;
|
|
|
|
const-string v4, "Content-Length ("
|
|
|
|
invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v3, v0, v1}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, ") and stream length ("
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
const-string v0, ") disagree"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-direct {v2, p0}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast v2, Ljava/lang/Throwable;
|
|
|
|
throw v2
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return-object v3
|
|
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
.line 134
|
|
:try_start_1
|
|
throw v0
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_1
|
|
|
|
:catchall_1
|
|
move-exception v1
|
|
|
|
invoke-static {p0, v0}, Lkotlin/io/CloseableKt;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V
|
|
|
|
throw v1
|
|
|
|
.line 335
|
|
:cond_2
|
|
new-instance p0, Ljava/io/IOException;
|
|
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
|
|
|
const-string v3, "Cannot buffer entire body for content length: "
|
|
|
|
invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v2, v0, v1}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {p0, v0}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public final bytes()[B
|
|
.locals 6
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 322
|
|
invoke-virtual {p0}, Lokhttp3/ResponseBody;->contentLength()J
|
|
|
|
move-result-wide v0
|
|
|
|
const v2, 0x7fffffff
|
|
|
|
int-to-long v2, v2
|
|
|
|
cmp-long v2, v0, v2
|
|
|
|
if-gtz v2, :cond_2
|
|
|
|
.line 327
|
|
invoke-virtual {p0}, Lokhttp3/ResponseBody;->source()Lokio/BufferedSource;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Ljava/io/Closeable;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
move-object v3, v2
|
|
|
|
check-cast v3, Ljava/lang/Throwable;
|
|
|
|
:try_start_0
|
|
move-object v3, p0
|
|
|
|
check-cast v3, Lokio/BufferedSource;
|
|
|
|
.line 124
|
|
invoke-interface {v3}, Lokio/BufferedSource;->readByteArray()[B
|
|
|
|
move-result-object v3
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
invoke-static {p0, v2}, Lkotlin/io/CloseableKt;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V
|
|
|
|
array-length p0, v3
|
|
|
|
const-wide/16 v4, -0x1
|
|
|
|
cmp-long v2, v0, v4
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
int-to-long v4, p0
|
|
|
|
cmp-long v2, v0, v4
|
|
|
|
if-nez v2, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 330
|
|
:cond_0
|
|
new-instance v2, Ljava/io/IOException;
|
|
|
|
new-instance v3, Ljava/lang/StringBuilder;
|
|
|
|
const-string v4, "Content-Length ("
|
|
|
|
invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v3, v0, v1}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, ") and stream length ("
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
const-string v0, ") disagree"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-direct {v2, p0}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast v2, Ljava/lang/Throwable;
|
|
|
|
throw v2
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return-object v3
|
|
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
.line 124
|
|
:try_start_1
|
|
throw v0
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_1
|
|
|
|
:catchall_1
|
|
move-exception v1
|
|
|
|
invoke-static {p0, v0}, Lkotlin/io/CloseableKt;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V
|
|
|
|
throw v1
|
|
|
|
.line 324
|
|
:cond_2
|
|
new-instance p0, Ljava/io/IOException;
|
|
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
|
|
|
const-string v3, "Cannot buffer entire body for content length: "
|
|
|
|
invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v2, v0, v1}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {p0, v0}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public final charStream()Ljava/io/Reader;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lokhttp3/ResponseBody;->reader:Ljava/io/Reader;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 165
|
|
:cond_0
|
|
new-instance v0, Lokhttp3/ResponseBody$BomAwareReader;
|
|
|
|
invoke-virtual {p0}, Lokhttp3/ResponseBody;->source()Lokio/BufferedSource;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {p0}, Lokhttp3/ResponseBody;->charset()Ljava/nio/charset/Charset;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-direct {v0, v1, v2}, Lokhttp3/ResponseBody$BomAwareReader;-><init>(Lokio/BufferedSource;Ljava/nio/charset/Charset;)V
|
|
|
|
.line 166
|
|
check-cast v0, Ljava/io/Reader;
|
|
|
|
iput-object v0, p0, Lokhttp3/ResponseBody;->reader:Ljava/io/Reader;
|
|
|
|
:goto_0
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public close()V
|
|
.locals 0
|
|
|
|
.line 192
|
|
invoke-virtual {p0}, Lokhttp3/ResponseBody;->source()Lokio/BufferedSource;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Ljava/io/Closeable;
|
|
|
|
invoke-static {p0}, Lokhttp3/internal/Util;->closeQuietly(Ljava/io/Closeable;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public abstract contentLength()J
|
|
.end method
|
|
|
|
.method public abstract contentType()Lokhttp3/MediaType;
|
|
.end method
|
|
|
|
.method public abstract source()Lokio/BufferedSource;
|
|
.end method
|
|
|
|
.method public final string()Ljava/lang/String;
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 186
|
|
invoke-virtual {p0}, Lokhttp3/ResponseBody;->source()Lokio/BufferedSource;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Ljava/io/Closeable;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
move-object v2, v1
|
|
|
|
check-cast v2, Ljava/lang/Throwable;
|
|
|
|
:try_start_0
|
|
move-object v2, v0
|
|
|
|
check-cast v2, Lokio/BufferedSource;
|
|
|
|
.line 187
|
|
invoke-direct {p0}, Lokhttp3/ResponseBody;->charset()Ljava/nio/charset/Charset;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-static {v2, p0}, Lokhttp3/internal/Util;->readBomAsCharset(Lokio/BufferedSource;Ljava/nio/charset/Charset;)Ljava/nio/charset/Charset;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-interface {v2, p0}, Lokio/BufferedSource;->readString(Ljava/nio/charset/Charset;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 186
|
|
invoke-static {v0, v1}, Lkotlin/io/CloseableKt;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V
|
|
|
|
return-object p0
|
|
|
|
:catchall_0
|
|
move-exception p0
|
|
|
|
:try_start_1
|
|
throw p0
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_1
|
|
|
|
:catchall_1
|
|
move-exception v1
|
|
|
|
invoke-static {v0, p0}, Lkotlin/io/CloseableKt;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V
|
|
|
|
throw v1
|
|
.end method
|