OkHttpCall$ExceptionCatchingRequestBody.smali
2.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
.class final Lretrofit2/OkHttpCall$ExceptionCatchingRequestBody;
.super Lokhttp3/ResponseBody;
.source "OkHttpCall.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lretrofit2/OkHttpCall;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = "ExceptionCatchingRequestBody"
.end annotation
# instance fields
.field private final delegate:Lokhttp3/ResponseBody;
.field thrownException:Ljava/io/IOException;
# direct methods
.method constructor <init>(Lokhttp3/ResponseBody;)V
.locals 0
.line 274
invoke-direct {p0}, Lokhttp3/ResponseBody;-><init>()V
.line 275
iput-object p1, p0, Lretrofit2/OkHttpCall$ExceptionCatchingRequestBody;->delegate:Lokhttp3/ResponseBody;
return-void
.end method
# virtual methods
.method public close()V
.locals 1
.line 300
iget-object v0, p0, Lretrofit2/OkHttpCall$ExceptionCatchingRequestBody;->delegate:Lokhttp3/ResponseBody;
invoke-virtual {v0}, Lokhttp3/ResponseBody;->close()V
return-void
.end method
.method public contentLength()J
.locals 2
.line 283
iget-object v0, p0, Lretrofit2/OkHttpCall$ExceptionCatchingRequestBody;->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 279
iget-object v0, p0, Lretrofit2/OkHttpCall$ExceptionCatchingRequestBody;->delegate:Lokhttp3/ResponseBody;
invoke-virtual {v0}, Lokhttp3/ResponseBody;->contentType()Lokhttp3/MediaType;
move-result-object v0
return-object v0
.end method
.method public source()Lokio/BufferedSource;
.locals 2
.line 287
new-instance v0, Lretrofit2/OkHttpCall$ExceptionCatchingRequestBody$1;
iget-object v1, p0, Lretrofit2/OkHttpCall$ExceptionCatchingRequestBody;->delegate:Lokhttp3/ResponseBody;
invoke-virtual {v1}, Lokhttp3/ResponseBody;->source()Lokio/BufferedSource;
move-result-object v1
invoke-direct {v0, p0, v1}, Lretrofit2/OkHttpCall$ExceptionCatchingRequestBody$1;-><init>(Lretrofit2/OkHttpCall$ExceptionCatchingRequestBody;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
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 304
iget-object v0, p0, Lretrofit2/OkHttpCall$ExceptionCatchingRequestBody;->thrownException:Ljava/io/IOException;
if-nez v0, :cond_0
return-void
.line 305
:cond_0
throw v0
.end method