OkHttpCall$ExceptionCatchingResponseBody.smali
.class final Lcom/vungle/warren/network/OkHttpCall$ExceptionCatchingResponseBody;
.super Lokhttp3/J;
.source "OkHttpCall.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/vungle/warren/network/OkHttpCall;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = "ExceptionCatchingResponseBody"
.end annotation
# instance fields
.field private final delegate:Lokhttp3/J;
.field thrownException:Ljava/io/IOException;
# direct methods
.method constructor <init>(Lokhttp3/J;)V
.registers 2
.line 1
invoke-direct {p0}, Lokhttp3/J;-><init>()V
.line 2
iput-object p1, p0, Lcom/vungle/warren/network/OkHttpCall$ExceptionCatchingResponseBody;->delegate:Lokhttp3/J;
return-void
.end method
# virtual methods
.method public close()V
.registers 2
.line 1
iget-object v0, p0, Lcom/vungle/warren/network/OkHttpCall$ExceptionCatchingResponseBody;->delegate:Lokhttp3/J;
invoke-virtual {v0}, Lokhttp3/J;->close()V
return-void
.end method
.method public contentLength()J
.registers 3
.line 1
iget-object v0, p0, Lcom/vungle/warren/network/OkHttpCall$ExceptionCatchingResponseBody;->delegate:Lokhttp3/J;
invoke-virtual {v0}, Lokhttp3/J;->contentLength()J
move-result-wide v0
return-wide v0
.end method
.method public contentType()Lokhttp3/w;
.registers 2
.line 1
iget-object v0, p0, Lcom/vungle/warren/network/OkHttpCall$ExceptionCatchingResponseBody;->delegate:Lokhttp3/J;
invoke-virtual {v0}, Lokhttp3/J;->contentType()Lokhttp3/w;
move-result-object v0
return-object v0
.end method
.method public source()Lokio/BufferedSource;
.registers 3
.line 1
new-instance v0, Lcom/vungle/warren/network/OkHttpCall$ExceptionCatchingResponseBody$1;
iget-object v1, p0, Lcom/vungle/warren/network/OkHttpCall$ExceptionCatchingResponseBody;->delegate:Lokhttp3/J;
invoke-virtual {v1}, Lokhttp3/J;->source()Lokio/BufferedSource;
move-result-object v1
invoke-direct {v0, p0, v1}, Lcom/vungle/warren/network/OkHttpCall$ExceptionCatchingResponseBody$1;-><init>(Lcom/vungle/warren/network/OkHttpCall$ExceptionCatchingResponseBody;Lokio/Source;)V
invoke-static {v0}, Lokio/Okio;->buffer(Lokio/Source;)Lokio/BufferedSource;
move-result-object v0
return-object v0
.end method
.method throwIfCaught()V
.registers 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
iget-object v0, p0, Lcom/vungle/warren/network/OkHttpCall$ExceptionCatchingResponseBody;->thrownException:Ljava/io/IOException;
if-nez v0, :cond_5
return-void
.line 2
:cond_5
throw v0
.end method