mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
197 lines
5.6 KiB
Smali
197 lines
5.6 KiB
Smali
|
.class public final Lokhttp3/ResponseBody$BomAwareReader;
|
||
|
.super Ljava/io/Reader;
|
||
|
.source "ResponseBody.kt"
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
||
|
value = Lokhttp3/ResponseBody;
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/InnerClass;
|
||
|
accessFlags = 0x19
|
||
|
name = "BomAwareReader"
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/SourceDebugExtension;
|
||
|
value = "SMAP\nResponseBody.kt\nKotlin\n*S Kotlin\n*F\n+ 1 ResponseBody.kt\nokhttp3/ResponseBody$BomAwareReader\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,321:1\n1#2:322\n*E\n"
|
||
|
.end annotation
|
||
|
|
||
|
.annotation runtime Lkotlin/Metadata;
|
||
|
bv = {
|
||
|
0x1,
|
||
|
0x0,
|
||
|
0x3
|
||
|
}
|
||
|
d1 = {
|
||
|
"\u00004\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0010\u000b\n\u0002\u0008\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u0008\n\u0000\n\u0002\u0010\u0019\n\u0002\u0008\u0003\u0008\u0000\u0018\u00002\u00020\u0001B\u0015\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u00a2\u0006\u0002\u0010\u0006J\u0008\u0010\n\u001a\u00020\u000bH\u0016J \u0010\u000c\u001a\u00020\r2\u0006\u0010\u000e\u001a\u00020\u000f2\u0006\u0010\u0010\u001a\u00020\r2\u0006\u0010\u0011\u001a\u00020\rH\u0016R\u000e\u0010\u0004\u001a\u00020\u0005X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0007\u001a\u00020\u0008X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u0010\u0010\t\u001a\u0004\u0018\u00010\u0001X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004\u00a2\u0006\u0002\n\u0000\u00a8\u0006\u0012"
|
||
|
}
|
||
|
d2 = {
|
||
|
"Lokhttp3/ResponseBody$BomAwareReader;",
|
||
|
"Ljava/io/Reader;",
|
||
|
"source",
|
||
|
"Lokio/BufferedSource;",
|
||
|
"charset",
|
||
|
"Ljava/nio/charset/Charset;",
|
||
|
"(Lokio/BufferedSource;Ljava/nio/charset/Charset;)V",
|
||
|
"closed",
|
||
|
"",
|
||
|
"delegate",
|
||
|
"close",
|
||
|
"",
|
||
|
"read",
|
||
|
"",
|
||
|
"cbuf",
|
||
|
"",
|
||
|
"off",
|
||
|
"len",
|
||
|
"okhttp"
|
||
|
}
|
||
|
k = 0x1
|
||
|
mv = {
|
||
|
0x1,
|
||
|
0x4,
|
||
|
0x0
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field private final charset:Ljava/nio/charset/Charset;
|
||
|
|
||
|
.field private closed:Z
|
||
|
|
||
|
.field private delegate:Ljava/io/Reader;
|
||
|
|
||
|
.field private final source:Lokio/BufferedSource;
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public constructor <init>(Lokio/BufferedSource;Ljava/nio/charset/Charset;)V
|
||
|
.locals 1
|
||
|
|
||
|
const-string v0, "source"
|
||
|
|
||
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
const-string v0, "charset"
|
||
|
|
||
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
.line 197
|
||
|
invoke-direct {p0}, Ljava/io/Reader;-><init>()V
|
||
|
|
||
|
iput-object p1, p0, Lokhttp3/ResponseBody$BomAwareReader;->source:Lokio/BufferedSource;
|
||
|
|
||
|
iput-object p2, p0, Lokhttp3/ResponseBody$BomAwareReader;->charset:Ljava/nio/charset/Charset;
|
||
|
|
||
|
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
|
||
|
|
||
|
iput-boolean v0, p0, Lokhttp3/ResponseBody$BomAwareReader;->closed:Z
|
||
|
|
||
|
iget-object v0, p0, Lokhttp3/ResponseBody$BomAwareReader;->delegate:Ljava/io/Reader;
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
.line 217
|
||
|
invoke-virtual {v0}, Ljava/io/Reader;->close()V
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
move-object v0, p0
|
||
|
|
||
|
check-cast v0, Lokhttp3/ResponseBody$BomAwareReader;
|
||
|
|
||
|
iget-object p0, p0, Lokhttp3/ResponseBody$BomAwareReader;->source:Lokio/BufferedSource;
|
||
|
|
||
|
invoke-interface {p0}, Lokio/BufferedSource;->close()V
|
||
|
|
||
|
:goto_0
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public read([CII)I
|
||
|
.locals 4
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/io/IOException;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
const-string v0, "cbuf"
|
||
|
|
||
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
iget-boolean v0, p0, Lokhttp3/ResponseBody$BomAwareReader;->closed:Z
|
||
|
|
||
|
if-nez v0, :cond_1
|
||
|
|
||
|
iget-object v0, p0, Lokhttp3/ResponseBody$BomAwareReader;->delegate:Ljava/io/Reader;
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
.line 206
|
||
|
:cond_0
|
||
|
new-instance v0, Ljava/io/InputStreamReader;
|
||
|
|
||
|
iget-object v1, p0, Lokhttp3/ResponseBody$BomAwareReader;->source:Lokio/BufferedSource;
|
||
|
|
||
|
.line 207
|
||
|
invoke-interface {v1}, Lokio/BufferedSource;->inputStream()Ljava/io/InputStream;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
iget-object v2, p0, Lokhttp3/ResponseBody$BomAwareReader;->source:Lokio/BufferedSource;
|
||
|
|
||
|
iget-object v3, p0, Lokhttp3/ResponseBody$BomAwareReader;->charset:Ljava/nio/charset/Charset;
|
||
|
|
||
|
.line 208
|
||
|
invoke-static {v2, v3}, Lokhttp3/internal/Util;->readBomAsCharset(Lokio/BufferedSource;Ljava/nio/charset/Charset;)Ljava/nio/charset/Charset;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
.line 206
|
||
|
invoke-direct {v0, v1, v2}, Ljava/io/InputStreamReader;-><init>(Ljava/io/InputStream;Ljava/nio/charset/Charset;)V
|
||
|
|
||
|
.line 209
|
||
|
check-cast v0, Ljava/io/Reader;
|
||
|
|
||
|
iput-object v0, p0, Lokhttp3/ResponseBody$BomAwareReader;->delegate:Ljava/io/Reader;
|
||
|
|
||
|
.line 211
|
||
|
:goto_0
|
||
|
invoke-virtual {v0, p1, p2, p3}, Ljava/io/Reader;->read([CII)I
|
||
|
|
||
|
move-result p0
|
||
|
|
||
|
return p0
|
||
|
|
||
|
.line 204
|
||
|
:cond_1
|
||
|
new-instance p0, Ljava/io/IOException;
|
||
|
|
||
|
const-string p1, "Stream closed"
|
||
|
|
||
|
invoke-direct {p0, p1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
check-cast p0, Ljava/lang/Throwable;
|
||
|
|
||
|
throw p0
|
||
|
.end method
|