今奥全景相机
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

144 lines
2.7 KiB

.class Lokhttp3/internal/FaultHidingSink;
.super Lokio/ForwardingSink;
.source "FaultHidingSink.java"
# instance fields
.field private hasErrors:Z
# direct methods
.method public constructor <init>(Lokio/Sink;)V
.locals 0
.prologue
.line 28
invoke-direct {p0, p1}, Lokio/ForwardingSink;-><init>(Lokio/Sink;)V
.line 29
return-void
.end method
# virtual methods
.method public close()V
.locals 2
.prologue
.line 55
iget-boolean v0, p0, Lokhttp3/internal/FaultHidingSink;->hasErrors:Z
if-eqz v0, :cond_0
.line 62
:goto_0
return-void
.line 57
: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
.line 58
:catch_0
move-exception v0
.line 59
const/4 v1, 0x1
iput-boolean v1, p0, Lokhttp3/internal/FaultHidingSink;->hasErrors:Z
.line 60
invoke-virtual {p0, v0}, Lokhttp3/internal/FaultHidingSink;->onException(Ljava/io/IOException;)V
goto :goto_0
.end method
.method public flush()V
.locals 2
.prologue
.line 45
iget-boolean v0, p0, Lokhttp3/internal/FaultHidingSink;->hasErrors:Z
if-eqz v0, :cond_0
.line 52
:goto_0
return-void
.line 47
: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
.line 48
:catch_0
move-exception v0
.line 49
const/4 v1, 0x1
iput-boolean v1, p0, Lokhttp3/internal/FaultHidingSink;->hasErrors:Z
.line 50
invoke-virtual {p0, v0}, Lokhttp3/internal/FaultHidingSink;->onException(Ljava/io/IOException;)V
goto :goto_0
.end method
.method protected onException(Ljava/io/IOException;)V
.locals 0
.prologue
.line 65
return-void
.end method
.method public write(Lokio/Buffer;J)V
.locals 2
.prologue
.line 32
iget-boolean v0, p0, Lokhttp3/internal/FaultHidingSink;->hasErrors:Z
if-eqz v0, :cond_0
.line 33
invoke-virtual {p1, p2, p3}, Lokio/Buffer;->skip(J)V
.line 42
:goto_0
return-void
.line 37
: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
.line 38
:catch_0
move-exception v0
.line 39
const/4 v1, 0x1
iput-boolean v1, p0, Lokhttp3/internal/FaultHidingSink;->hasErrors:Z
.line 40
invoke-virtual {p0, v0}, Lokhttp3/internal/FaultHidingSink;->onException(Ljava/io/IOException;)V
goto :goto_0
.end method