123 lines
2.9 KiB
Smali
123 lines
2.9 KiB
Smali
.class final Lretrofit2/OkHttpCall$ExceptionCatchingResponseBody;
|
|
.super Lokhttp3/ResponseBody;
|
|
.source "OkHttpCall.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lretrofit2/OkHttpCall;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = "ExceptionCatchingResponseBody"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private final delegate:Lokhttp3/ResponseBody;
|
|
|
|
.field private final delegateSource:Lzj/o;
|
|
|
|
.field public thrownException:Ljava/io/IOException;
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lokhttp3/ResponseBody;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Lokhttp3/ResponseBody;-><init>()V
|
|
|
|
.line 2
|
|
iput-object p1, p0, Lretrofit2/OkHttpCall$ExceptionCatchingResponseBody;->delegate:Lokhttp3/ResponseBody;
|
|
|
|
.line 3
|
|
new-instance v0, Lretrofit2/OkHttpCall$ExceptionCatchingResponseBody$1;
|
|
|
|
invoke-virtual {p1}, Lokhttp3/ResponseBody;->source()Lzj/o;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {v0, p0, p1}, Lretrofit2/OkHttpCall$ExceptionCatchingResponseBody$1;-><init>(Lretrofit2/OkHttpCall$ExceptionCatchingResponseBody;Lzj/m0;)V
|
|
|
|
invoke-static {v0}, Lzj/z;->d(Lzj/m0;)Lzj/o;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lretrofit2/OkHttpCall$ExceptionCatchingResponseBody;->delegateSource:Lzj/o;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public close()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lretrofit2/OkHttpCall$ExceptionCatchingResponseBody;->delegate:Lokhttp3/ResponseBody;
|
|
|
|
invoke-virtual {v0}, Lokhttp3/ResponseBody;->close()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public contentLength()J
|
|
.locals 2
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lretrofit2/OkHttpCall$ExceptionCatchingResponseBody;->delegate:Lokhttp3/ResponseBody;
|
|
|
|
invoke-virtual {v0}, Lokhttp3/ResponseBody;->contentLength()J
|
|
|
|
move-result-wide v0
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public contentType()Lokhttp3/MediaType;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lretrofit2/OkHttpCall$ExceptionCatchingResponseBody;->delegate:Lokhttp3/ResponseBody;
|
|
|
|
invoke-virtual {v0}, Lokhttp3/ResponseBody;->contentType()Lokhttp3/MediaType;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public source()Lzj/o;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lretrofit2/OkHttpCall$ExceptionCatchingResponseBody;->delegateSource:Lzj/o;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public throwIfCaught()V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lretrofit2/OkHttpCall$ExceptionCatchingResponseBody;->thrownException:Ljava/io/IOException;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 2
|
|
:cond_0
|
|
throw v0
|
|
.end method
|