123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132 |
- .class Lokhttp3/internal/cache/FaultHidingSink;
- .super Lokio/ForwardingSink;
- .source ""
- # instance fields
- .field private hasErrors:Z
- # direct methods
- .method constructor <init>(Lokio/Sink;)V
- .locals 0
- invoke-direct {p0, p1}, Lokio/ForwardingSink;-><init>(Lokio/Sink;)V
- return-void
- .end method
- # virtual methods
- .method public close()V
- .locals 2
- .annotation system Ldalvik/annotation/Throws;
- value = {
- Ljava/io/IOException;
- }
- .end annotation
- iget-boolean v0, p0, Lokhttp3/internal/cache/FaultHidingSink;->hasErrors:Z
- if-eqz v0, :cond_0
- return-void
- :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
- invoke-virtual {p0, v0}, Lokhttp3/internal/cache/FaultHidingSink;->onException(Ljava/io/IOException;)V
- :goto_0
- return-void
- .end method
- .method public flush()V
- .locals 2
- .annotation system Ldalvik/annotation/Throws;
- value = {
- Ljava/io/IOException;
- }
- .end annotation
- iget-boolean v0, p0, Lokhttp3/internal/cache/FaultHidingSink;->hasErrors:Z
- if-eqz v0, :cond_0
- return-void
- :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
- invoke-virtual {p0, v0}, Lokhttp3/internal/cache/FaultHidingSink;->onException(Ljava/io/IOException;)V
- :goto_0
- return-void
- .end method
- .method protected onException(Ljava/io/IOException;)V
- .locals 0
- return-void
- .end method
- .method public write(Lokio/Buffer;J)V
- .locals 1
- .annotation system Ldalvik/annotation/Throws;
- value = {
- Ljava/io/IOException;
- }
- .end annotation
- iget-boolean v0, p0, Lokhttp3/internal/cache/FaultHidingSink;->hasErrors:Z
- if-eqz v0, :cond_0
- invoke-virtual {p1, p2, p3}, Lokio/Buffer;->skip(J)V
- return-void
- :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
- invoke-virtual {p0, p1}, Lokhttp3/internal/cache/FaultHidingSink;->onException(Ljava/io/IOException;)V
- :goto_0
- return-void
- .end method
|