apkfuckery/com.discord/smali_classes2/okhttp3/ResponseBody.smali

136 lines
2.8 KiB
Smali
Raw Normal View History

2020-07-08 16:44:49 +00:00
.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$a;,
Lokhttp3/ResponseBody$b;
}
.end annotation
# static fields
.field public static final e:Lokhttp3/ResponseBody$b;
# instance fields
.field public d:Ljava/io/Reader;
# direct methods
.method public static constructor <clinit>()V
.locals 2
new-instance v0, Lokhttp3/ResponseBody$b;
const/4 v1, 0x0
invoke-direct {v0, v1}, Lokhttp3/ResponseBody$b;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
sput-object v0, Lokhttp3/ResponseBody;->e:Lokhttp3/ResponseBody$b;
return-void
.end method
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public abstract a()J
.end method
.method public abstract b()Lokhttp3/MediaType;
.end method
2020-09-02 04:07:20 +00:00
.method public abstract c()Lp0/g;
2020-07-08 16:44:49 +00:00
.end method
.method public close()V
.locals 1
2020-09-02 04:07:20 +00:00
invoke-virtual {p0}, Lokhttp3/ResponseBody;->c()Lp0/g;
2020-07-08 16:44:49 +00:00
move-result-object v0
2020-09-02 04:07:20 +00:00
invoke-static {v0}, Lo0/g0/b;->f(Ljava/io/Closeable;)V
2020-07-08 16:44:49 +00:00
return-void
.end method
.method public final d()Ljava/lang/String;
.locals 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2020-09-02 04:07:20 +00:00
invoke-virtual {p0}, Lokhttp3/ResponseBody;->c()Lp0/g;
2020-07-08 16:44:49 +00:00
move-result-object v0
:try_start_0
invoke-virtual {p0}, Lokhttp3/ResponseBody;->b()Lokhttp3/MediaType;
move-result-object v1
if-eqz v1, :cond_0
2020-09-08 08:16:32 +00:00
sget-object v2, Lk0/t/a;->a:Ljava/nio/charset/Charset;
2020-07-08 16:44:49 +00:00
invoke-virtual {v1, v2}, Lokhttp3/MediaType;->a(Ljava/nio/charset/Charset;)Ljava/nio/charset/Charset;
move-result-object v1
if-eqz v1, :cond_0
goto :goto_0
:cond_0
2020-09-08 08:16:32 +00:00
sget-object v1, Lk0/t/a;->a:Ljava/nio/charset/Charset;
2020-07-08 16:44:49 +00:00
:goto_0
2020-09-02 04:07:20 +00:00
invoke-static {v0, v1}, Lo0/g0/b;->x(Lp0/g;Ljava/nio/charset/Charset;)Ljava/nio/charset/Charset;
2020-07-08 16:44:49 +00:00
move-result-object v1
2020-09-02 04:07:20 +00:00
invoke-interface {v0, v1}, Lp0/g;->b0(Ljava/nio/charset/Charset;)Ljava/lang/String;
2020-07-08 16:44:49 +00:00
move-result-object v1
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
const/4 v2, 0x0
2020-07-25 02:57:47 +00:00
invoke-static {v0, v2}, Lf/n/a/k/a;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V
2020-07-08 16:44:49 +00:00
return-object v1
:catchall_0
move-exception v1
:try_start_1
throw v1
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_1
:catchall_1
move-exception v2
2020-07-25 02:57:47 +00:00
invoke-static {v0, v1}, Lf/n/a/k/a;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V
2020-07-08 16:44:49 +00:00
throw v2
.end method