2020-07-08 16:44:49 +00:00
|
|
|
.class public final Lokhttp3/ResponseBody$a;
|
2020-05-17 12:40:10 +00:00
|
|
|
.super Ljava/io/Reader;
|
|
|
|
.source "ResponseBody.kt"
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
2020-07-08 16:44:49 +00:00
|
|
|
value = Lokhttp3/ResponseBody;
|
2020-05-17 12:40:10 +00:00
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
|
|
accessFlags = 0x19
|
|
|
|
name = "a"
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field public d:Z
|
|
|
|
|
|
|
|
.field public e:Ljava/io/Reader;
|
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
.field public final f:Lh0/g;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
.field public final g:Ljava/nio/charset/Charset;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2020-10-05 23:18:16 +00:00
|
|
|
.method public constructor <init>(Lh0/g;Ljava/nio/charset/Charset;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
.locals 1
|
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-string v0, "source"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-static {p1, v0}, Lc0/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-string v0, "charset"
|
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-static {p2, v0}, Lc0/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/io/Reader;-><init>()V
|
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
iput-object p1, p0, Lokhttp3/ResponseBody$a;->f:Lh0/g;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
iput-object p2, p0, Lokhttp3/ResponseBody$a;->g:Ljava/nio/charset/Charset;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public close()V
|
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
|
|
value = {
|
|
|
|
Ljava/io/IOException;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
iput-boolean v0, p0, Lokhttp3/ResponseBody$a;->d:Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
iget-object v0, p0, Lokhttp3/ResponseBody$a;->e:Ljava/io/Reader;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/io/Reader;->close()V
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
2020-10-05 23:18:16 +00:00
|
|
|
iget-object v0, p0, Lokhttp3/ResponseBody$a;->f:Lh0/g;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-interface {v0}, Lh0/x;->close()V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:goto_0
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public read([CII)I
|
|
|
|
.locals 4
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
|
|
value = {
|
|
|
|
Ljava/io/IOException;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-string v0, "cbuf"
|
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-static {p1, v0}, Lc0/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
iget-boolean v0, p0, Lokhttp3/ResponseBody$a;->d:Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
iget-object v0, p0, Lokhttp3/ResponseBody$a;->e:Ljava/io/Reader;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
new-instance v0, Ljava/io/InputStreamReader;
|
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
iget-object v1, p0, Lokhttp3/ResponseBody$a;->f:Lh0/g;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-interface {v1}, Lh0/g;->Z0()Ljava/io/InputStream;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
iget-object v2, p0, Lokhttp3/ResponseBody$a;->f:Lh0/g;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
iget-object v3, p0, Lokhttp3/ResponseBody$a;->g:Ljava/nio/charset/Charset;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-static {v2, v3}, Lg0/h0/c;->x(Lh0/g;Ljava/nio/charset/Charset;)Ljava/nio/charset/Charset;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-direct {v0, v1, v2}, Ljava/io/InputStreamReader;-><init>(Ljava/io/InputStream;Ljava/nio/charset/Charset;)V
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
iput-object v0, p0, Lokhttp3/ResponseBody$a;->e:Ljava/io/Reader;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-virtual {v0, p1, p2, p3}, Ljava/io/Reader;->read([CII)I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
return p1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
new-instance p1, Ljava/io/IOException;
|
|
|
|
|
|
|
|
const-string p2, "Stream closed"
|
|
|
|
|
|
|
|
invoke-direct {p1, p2}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|