apkfuckery/com.discord/smali_classes2/okhttp3/RequestBody$Companion$a.smali

115 lines
2.5 KiB
Smali
Raw Normal View History

2019-11-28 00:30:53 +00:00
.class public final Lokhttp3/RequestBody$Companion$a;
.super Lokhttp3/RequestBody;
.source "RequestBody.kt"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
2019-12-06 03:29:40 +00:00
value = Lokhttp3/RequestBody$Companion;->a(Ljava/io/File;Lokhttp3/MediaType;)Lokhttp3/RequestBody;
2019-11-28 00:30:53 +00:00
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
# instance fields
2019-12-06 03:29:40 +00:00
.field public final synthetic a:Ljava/io/File;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
.field public final synthetic b:Lokhttp3/MediaType;
2019-11-28 00:30:53 +00:00
# direct methods
2019-12-06 03:29:40 +00:00
.method public constructor <init>(Ljava/io/File;Lokhttp3/MediaType;)V
2019-11-28 00:30:53 +00:00
.locals 0
2019-12-06 03:29:40 +00:00
iput-object p1, p0, Lokhttp3/RequestBody$Companion$a;->a:Ljava/io/File;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
iput-object p2, p0, Lokhttp3/RequestBody$Companion$a;->b:Lokhttp3/MediaType;
2019-11-28 00:30:53 +00:00
invoke-direct {p0}, Lokhttp3/RequestBody;-><init>()V
return-void
.end method
# virtual methods
2019-12-06 03:29:40 +00:00
.method public contentLength()J
2019-11-28 00:30:53 +00:00
.locals 2
2019-12-06 03:29:40 +00:00
iget-object v0, p0, Lokhttp3/RequestBody$Companion$a;->a:Ljava/io/File;
2019-11-28 00:30:53 +00:00
invoke-virtual {v0}, Ljava/io/File;->length()J
move-result-wide v0
return-wide v0
.end method
2019-12-06 03:29:40 +00:00
.method public contentType()Lokhttp3/MediaType;
2019-11-28 00:30:53 +00:00
.locals 1
2019-12-06 03:29:40 +00:00
iget-object v0, p0, Lokhttp3/RequestBody$Companion$a;->b:Lokhttp3/MediaType;
2019-11-28 00:30:53 +00:00
return-object v0
.end method
2019-12-06 03:29:40 +00:00
.method public writeTo(Lokio/BufferedSink;)V
.locals 3
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
const/4 v0, 0x0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
if-eqz p1, :cond_1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
iget-object v1, p0, Lokhttp3/RequestBody$Companion$a;->a:Ljava/io/File;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
if-eqz v1, :cond_0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
new-instance v2, Ljava/io/FileInputStream;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-direct {v2, v1}, Ljava/io/FileInputStream;-><init>(Ljava/io/File;)V
2019-11-28 00:30:53 +00:00
2020-03-26 23:31:08 +00:00
invoke-static {v2}, Lx/a/a2/w;->a(Ljava/io/InputStream;)Lb0/w;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
:try_start_0
2020-03-26 23:31:08 +00:00
invoke-interface {p1, v1}, Lokio/BufferedSink;->a(Lb0/w;)J
2019-11-28 00:30:53 +00:00
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
2020-02-20 19:33:18 +00:00
invoke-static {v1, v0}, Le/k/a/c/e/p/g;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V
2019-11-28 00:30:53 +00:00
return-void
:catchall_0
move-exception p1
:try_start_1
throw p1
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_1
:catchall_1
2019-12-06 03:29:40 +00:00
move-exception v0
2020-02-20 19:33:18 +00:00
invoke-static {v1, p1}, Le/k/a/c/e/p/g;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V
2019-12-06 03:29:40 +00:00
throw v0
:cond_0
const-string p1, "$receiver"
2020-03-26 23:31:08 +00:00
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
throw v0
:cond_1
const-string p1, "sink"
2019-11-28 00:30:53 +00:00
2020-03-26 23:31:08 +00:00
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
throw v0
2019-11-28 00:30:53 +00:00
.end method