mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
221 lines
6.1 KiB
Smali
221 lines
6.1 KiB
Smali
|
.class public Lokhttp3/internal/cache/FaultHidingSink;
|
||
|
.super Lokio/ForwardingSink;
|
||
|
.source "FaultHidingSink.kt"
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.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\u0018\u0002\n\u0002\u0010\u0002\n\u0002\u0008\u0002\n\u0002\u0010\u000b\n\u0002\u0008\u0006\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\t\n\u0000\u0008\u0010\u0018\u00002\u00020\u0001B!\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0012\u0010\u0004\u001a\u000e\u0012\u0004\u0012\u00020\u0006\u0012\u0004\u0012\u00020\u00070\u0005\u00a2\u0006\u0002\u0010\u0008J\u0008\u0010\r\u001a\u00020\u0007H\u0016J\u0008\u0010\u000e\u001a\u00020\u0007H\u0016J\u0018\u0010\u000f\u001a\u00020\u00072\u0006\u0010\u0010\u001a\u00020\u00112\u0006\u0010\u0012\u001a\u00020\u0013H\u0016R\u000e\u0010\t\u001a\u00020\nX\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u001d\u0010\u0004\u001a\u000e\u0012\u0004\u0012\u00020\u0006\u0012\u0004\u0012\u00020\u00070\u0005\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u000b\u0010\u000c\u00a8\u0006\u0014"
|
||
|
}
|
||
|
d2 = {
|
||
|
"Lokhttp3/internal/cache/FaultHidingSink;",
|
||
|
"Lokio/ForwardingSink;",
|
||
|
"delegate",
|
||
|
"Lokio/Sink;",
|
||
|
"onException",
|
||
|
"Lkotlin/Function1;",
|
||
|
"Ljava/io/IOException;",
|
||
|
"",
|
||
|
"(Lokio/Sink;Lkotlin/jvm/functions/Function1;)V",
|
||
|
"hasErrors",
|
||
|
"",
|
||
|
"getOnException",
|
||
|
"()Lkotlin/jvm/functions/Function1;",
|
||
|
"close",
|
||
|
"flush",
|
||
|
"write",
|
||
|
"source",
|
||
|
"Lokio/Buffer;",
|
||
|
"byteCount",
|
||
|
"",
|
||
|
"okhttp"
|
||
|
}
|
||
|
k = 0x1
|
||
|
mv = {
|
||
|
0x1,
|
||
|
0x4,
|
||
|
0x0
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field private hasErrors:Z
|
||
|
|
||
|
.field private final onException:Lkotlin/jvm/functions/Function1;
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"Lkotlin/jvm/functions/Function1<",
|
||
|
"Ljava/io/IOException;",
|
||
|
"Lkotlin/Unit;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public constructor <init>(Lokio/Sink;Lkotlin/jvm/functions/Function1;)V
|
||
|
.locals 1
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Lokio/Sink;",
|
||
|
"Lkotlin/jvm/functions/Function1<",
|
||
|
"-",
|
||
|
"Ljava/io/IOException;",
|
||
|
"Lkotlin/Unit;",
|
||
|
">;)V"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
const-string v0, "delegate"
|
||
|
|
||
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
const-string v0, "onException"
|
||
|
|
||
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
.line 27
|
||
|
invoke-direct {p0, p1}, Lokio/ForwardingSink;-><init>(Lokio/Sink;)V
|
||
|
|
||
|
iput-object p2, p0, Lokhttp3/internal/cache/FaultHidingSink;->onException:Lkotlin/jvm/functions/Function1;
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public close()V
|
||
|
.locals 2
|
||
|
|
||
|
iget-boolean v0, p0, Lokhttp3/internal/cache/FaultHidingSink;->hasErrors:Z
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
return-void
|
||
|
|
||
|
.line 60
|
||
|
:cond_0
|
||
|
:try_start_0
|
||
|
invoke-super {p0}, Lokio/ForwardingSink;->close()V
|
||
|
:try_end_0
|
||
|
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:catch_0
|
||
|
move-exception v0
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
iput-boolean v1, p0, Lokhttp3/internal/cache/FaultHidingSink;->hasErrors:Z
|
||
|
|
||
|
iget-object p0, p0, Lokhttp3/internal/cache/FaultHidingSink;->onException:Lkotlin/jvm/functions/Function1;
|
||
|
|
||
|
.line 63
|
||
|
invoke-interface {p0, v0}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
||
|
|
||
|
:goto_0
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public flush()V
|
||
|
.locals 2
|
||
|
|
||
|
iget-boolean v0, p0, Lokhttp3/internal/cache/FaultHidingSink;->hasErrors:Z
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
return-void
|
||
|
|
||
|
.line 48
|
||
|
:cond_0
|
||
|
:try_start_0
|
||
|
invoke-super {p0}, Lokio/ForwardingSink;->flush()V
|
||
|
:try_end_0
|
||
|
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:catch_0
|
||
|
move-exception v0
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
iput-boolean v1, p0, Lokhttp3/internal/cache/FaultHidingSink;->hasErrors:Z
|
||
|
|
||
|
iget-object p0, p0, Lokhttp3/internal/cache/FaultHidingSink;->onException:Lkotlin/jvm/functions/Function1;
|
||
|
|
||
|
.line 51
|
||
|
invoke-interface {p0, v0}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
||
|
|
||
|
:goto_0
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public final getOnException()Lkotlin/jvm/functions/Function1;
|
||
|
.locals 0
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"()",
|
||
|
"Lkotlin/jvm/functions/Function1<",
|
||
|
"Ljava/io/IOException;",
|
||
|
"Lkotlin/Unit;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
iget-object p0, p0, Lokhttp3/internal/cache/FaultHidingSink;->onException:Lkotlin/jvm/functions/Function1;
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public write(Lokio/Buffer;J)V
|
||
|
.locals 1
|
||
|
|
||
|
const-string v0, "source"
|
||
|
|
||
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
iget-boolean v0, p0, Lokhttp3/internal/cache/FaultHidingSink;->hasErrors:Z
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
.line 32
|
||
|
invoke-virtual {p1, p2, p3}, Lokio/Buffer;->skip(J)V
|
||
|
|
||
|
return-void
|
||
|
|
||
|
.line 36
|
||
|
:cond_0
|
||
|
:try_start_0
|
||
|
invoke-super {p0, p1, p2, p3}, Lokio/ForwardingSink;->write(Lokio/Buffer;J)V
|
||
|
:try_end_0
|
||
|
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:catch_0
|
||
|
move-exception p1
|
||
|
|
||
|
const/4 p2, 0x1
|
||
|
|
||
|
iput-boolean p2, p0, Lokhttp3/internal/cache/FaultHidingSink;->hasErrors:Z
|
||
|
|
||
|
iget-object p0, p0, Lokhttp3/internal/cache/FaultHidingSink;->onException:Lkotlin/jvm/functions/Function1;
|
||
|
|
||
|
.line 39
|
||
|
invoke-interface {p0, p1}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
||
|
|
||
|
:goto_0
|
||
|
return-void
|
||
|
.end method
|