869 lines
22 KiB
Smali
869 lines
22 KiB
Smali
.class public final Lokhttp3/MultipartBody;
|
|
.super Lokhttp3/RequestBody;
|
|
.source "MultipartBody.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lokhttp3/MultipartBody$Part;,
|
|
Lokhttp3/MultipartBody$Builder;,
|
|
Lokhttp3/MultipartBody$Companion;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation runtime Lkotlin/Metadata;
|
|
bv = {}
|
|
d1 = {
|
|
"\u0000N\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\t\n\u0000\n\u0002\u0010\u0008\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0004\n\u0002\u0010\u000e\n\u0002\u0008\u0006\n\u0002\u0010 \n\u0002\u0008\u0004\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0002\u0008\t\u0018\u0000 \'2\u00020\u0001:\u0003(\')B\'\u0008\u0000\u0012\u0006\u0010\"\u001a\u00020!\u0012\u0006\u0010\u0010\u001a\u00020\u000c\u0012\u000c\u0010\u001b\u001a\u0008\u0012\u0004\u0012\u00020\n0\u0018\u00a2\u0006\u0004\u0008%\u0010&J\u001a\u0010\u0007\u001a\u00020\u00062\u0008\u0010\u0003\u001a\u0004\u0018\u00010\u00022\u0006\u0010\u0005\u001a\u00020\u0004H\u0002J\u000e\u0010\u000b\u001a\u00020\n2\u0006\u0010\t\u001a\u00020\u0008J\u0008\u0010\r\u001a\u00020\u000cH\u0016J\u000f\u0010\u0010\u001a\u00020\u000cH\u0007\u00a2\u0006\u0004\u0008\u000e\u0010\u000fJ\u000f\u0010\u0014\u001a\u00020\u0011H\u0007\u00a2\u0006\u0004\u0008\u0012\u0010\u0013J\u000f\u0010\u0017\u001a\u00020\u0008H\u0007\u00a2\u0006\u0004\u0008\u0015\u0010\u0016J\u0015\u0010\u001b\u001a\u0008\u0012\u0004\u0012\u00020\n0\u0018H\u0007\u00a2\u0006\u0004\u0008\u0019\u0010\u001aJ\u0008\u0010\u001c\u001a\u00020\u0006H\u0016J\u0010\u0010\u001e\u001a\u00020\u001d2\u0006\u0010\u0003\u001a\u00020\u0002H\u0016R\u0014\u0010\r\u001a\u00020\u000c8\u0002X\u0082\u0004\u00a2\u0006\u0006\n\u0004\u0008\r\u0010\u001fR\u0016\u0010\u001c\u001a\u00020\u00068\u0002@\u0002X\u0082\u000e\u00a2\u0006\u0006\n\u0004\u0008\u001c\u0010 R\u0014\u0010\"\u001a\u00020!8\u0002X\u0082\u0004\u00a2\u0006\u0006\n\u0004\u0008\"\u0010#R\u0017\u0010\u0010\u001a\u00020\u000c8\u0007\u00a2\u0006\u000c\n\u0004\u0008\u0010\u0010\u001f\u001a\u0004\u0008\u0010\u0010\u000fR\u001d\u0010\u001b\u001a\u0008\u0012\u0004\u0012\u00020\n0\u00188\u0007\u00a2\u0006\u000c\n\u0004\u0008\u001b\u0010$\u001a\u0004\u0008\u001b\u0010\u001aR\u0011\u0010\u0014\u001a\u00020\u00118G\u00a2\u0006\u0006\u001a\u0004\u0008\u0014\u0010\u0013R\u0011\u0010\u0017\u001a\u00020\u00088G\u00a2\u0006\u0006\u001a\u0004\u0008\u0017\u0010\u0016\u00a8\u0006*"
|
|
}
|
|
d2 = {
|
|
"Lokhttp3/MultipartBody;",
|
|
"Lokhttp3/RequestBody;",
|
|
"Lzj/n;",
|
|
"sink",
|
|
"",
|
|
"countBytes",
|
|
"",
|
|
"writeOrCountBytes",
|
|
"",
|
|
"index",
|
|
"Lokhttp3/MultipartBody$Part;",
|
|
"part",
|
|
"Lokhttp3/MediaType;",
|
|
"contentType",
|
|
"-deprecated_type",
|
|
"()Lokhttp3/MediaType;",
|
|
"type",
|
|
"",
|
|
"-deprecated_boundary",
|
|
"()Ljava/lang/String;",
|
|
"boundary",
|
|
"-deprecated_size",
|
|
"()I",
|
|
"size",
|
|
"",
|
|
"-deprecated_parts",
|
|
"()Ljava/util/List;",
|
|
"parts",
|
|
"contentLength",
|
|
"Lkotlin/d1;",
|
|
"writeTo",
|
|
"Lokhttp3/MediaType;",
|
|
"J",
|
|
"Lokio/ByteString;",
|
|
"boundaryByteString",
|
|
"Lokio/ByteString;",
|
|
"Ljava/util/List;",
|
|
"<init>",
|
|
"(Lokio/ByteString;Lokhttp3/MediaType;Ljava/util/List;)V",
|
|
"Companion",
|
|
"Builder",
|
|
"Part",
|
|
"okhttp"
|
|
}
|
|
k = 0x1
|
|
mv = {
|
|
0x1,
|
|
0x4,
|
|
0x0
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final ALTERNATIVE:Lokhttp3/MediaType;
|
|
.annotation build Lkotlin/jvm/JvmField;
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private static final COLONSPACE:[B
|
|
|
|
.field private static final CRLF:[B
|
|
|
|
.field public static final Companion:Lokhttp3/MultipartBody$Companion;
|
|
|
|
.field private static final DASHDASH:[B
|
|
|
|
.field public static final DIGEST:Lokhttp3/MediaType;
|
|
.annotation build Lkotlin/jvm/JvmField;
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public static final FORM:Lokhttp3/MediaType;
|
|
.annotation build Lkotlin/jvm/JvmField;
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public static final MIXED:Lokhttp3/MediaType;
|
|
.annotation build Lkotlin/jvm/JvmField;
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public static final PARALLEL:Lokhttp3/MediaType;
|
|
.annotation build Lkotlin/jvm/JvmField;
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# instance fields
|
|
.field private final boundaryByteString:Lokio/ByteString;
|
|
|
|
.field private contentLength:J
|
|
|
|
.field private final contentType:Lokhttp3/MediaType;
|
|
|
|
.field private final parts:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Lokhttp3/MultipartBody$Part;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private final type:Lokhttp3/MediaType;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 5
|
|
|
|
new-instance v0, Lokhttp3/MultipartBody$Companion;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {v0, v1}, Lokhttp3/MultipartBody$Companion;-><init>(Lkotlin/jvm/internal/u;)V
|
|
|
|
sput-object v0, Lokhttp3/MultipartBody;->Companion:Lokhttp3/MultipartBody$Companion;
|
|
|
|
.line 1
|
|
sget-object v0, Lokhttp3/MediaType;->Companion:Lokhttp3/MediaType$Companion;
|
|
|
|
const-string v1, "multipart/mixed"
|
|
|
|
invoke-virtual {v0, v1}, Lokhttp3/MediaType$Companion;->get(Ljava/lang/String;)Lokhttp3/MediaType;
|
|
|
|
move-result-object v1
|
|
|
|
sput-object v1, Lokhttp3/MultipartBody;->MIXED:Lokhttp3/MediaType;
|
|
|
|
const-string v1, "multipart/alternative"
|
|
|
|
.line 2
|
|
invoke-virtual {v0, v1}, Lokhttp3/MediaType$Companion;->get(Ljava/lang/String;)Lokhttp3/MediaType;
|
|
|
|
move-result-object v1
|
|
|
|
sput-object v1, Lokhttp3/MultipartBody;->ALTERNATIVE:Lokhttp3/MediaType;
|
|
|
|
const-string v1, "multipart/digest"
|
|
|
|
.line 3
|
|
invoke-virtual {v0, v1}, Lokhttp3/MediaType$Companion;->get(Ljava/lang/String;)Lokhttp3/MediaType;
|
|
|
|
move-result-object v1
|
|
|
|
sput-object v1, Lokhttp3/MultipartBody;->DIGEST:Lokhttp3/MediaType;
|
|
|
|
const-string v1, "multipart/parallel"
|
|
|
|
.line 4
|
|
invoke-virtual {v0, v1}, Lokhttp3/MediaType$Companion;->get(Ljava/lang/String;)Lokhttp3/MediaType;
|
|
|
|
move-result-object v1
|
|
|
|
sput-object v1, Lokhttp3/MultipartBody;->PARALLEL:Lokhttp3/MediaType;
|
|
|
|
const-string v1, "multipart/form-data"
|
|
|
|
.line 5
|
|
invoke-virtual {v0, v1}, Lokhttp3/MediaType$Companion;->get(Ljava/lang/String;)Lokhttp3/MediaType;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lokhttp3/MultipartBody;->FORM:Lokhttp3/MediaType;
|
|
|
|
const/4 v0, 0x2
|
|
|
|
new-array v1, v0, [B
|
|
|
|
const/16 v2, 0x3a
|
|
|
|
int-to-byte v2, v2
|
|
|
|
const/4 v3, 0x0
|
|
|
|
aput-byte v2, v1, v3
|
|
|
|
const/16 v2, 0x20
|
|
|
|
int-to-byte v2, v2
|
|
|
|
const/4 v4, 0x1
|
|
|
|
aput-byte v2, v1, v4
|
|
|
|
.line 6
|
|
sput-object v1, Lokhttp3/MultipartBody;->COLONSPACE:[B
|
|
|
|
new-array v1, v0, [B
|
|
|
|
const/16 v2, 0xd
|
|
|
|
int-to-byte v2, v2
|
|
|
|
aput-byte v2, v1, v3
|
|
|
|
const/16 v2, 0xa
|
|
|
|
int-to-byte v2, v2
|
|
|
|
aput-byte v2, v1, v4
|
|
|
|
.line 7
|
|
sput-object v1, Lokhttp3/MultipartBody;->CRLF:[B
|
|
|
|
new-array v0, v0, [B
|
|
|
|
const/16 v1, 0x2d
|
|
|
|
int-to-byte v1, v1
|
|
|
|
aput-byte v1, v0, v3
|
|
|
|
aput-byte v1, v0, v4
|
|
|
|
.line 8
|
|
sput-object v0, Lokhttp3/MultipartBody;->DASHDASH:[B
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Lokio/ByteString;Lokhttp3/MediaType;Ljava/util/List;)V
|
|
.locals 1
|
|
.param p1 # Lokio/ByteString;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Lokhttp3/MediaType;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.param p3 # Ljava/util/List;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lokio/ByteString;",
|
|
"Lokhttp3/MediaType;",
|
|
"Ljava/util/List<",
|
|
"Lokhttp3/MultipartBody$Part;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "boundaryByteString"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "type"
|
|
|
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "parts"
|
|
|
|
invoke-static {p3, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Lokhttp3/RequestBody;-><init>()V
|
|
|
|
iput-object p1, p0, Lokhttp3/MultipartBody;->boundaryByteString:Lokio/ByteString;
|
|
|
|
iput-object p2, p0, Lokhttp3/MultipartBody;->type:Lokhttp3/MediaType;
|
|
|
|
iput-object p3, p0, Lokhttp3/MultipartBody;->parts:Ljava/util/List;
|
|
|
|
.line 2
|
|
sget-object p1, Lokhttp3/MediaType;->Companion:Lokhttp3/MediaType$Companion;
|
|
|
|
new-instance p3, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {p3}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
invoke-virtual {p3, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
const-string p2, "; boundary="
|
|
|
|
invoke-virtual {p3, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p0}, Lokhttp3/MultipartBody;->boundary()Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p3, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p1, p2}, Lokhttp3/MediaType$Companion;->get(Ljava/lang/String;)Lokhttp3/MediaType;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lokhttp3/MultipartBody;->contentType:Lokhttp3/MediaType;
|
|
|
|
const-wide/16 p1, -0x1
|
|
|
|
.line 3
|
|
iput-wide p1, p0, Lokhttp3/MultipartBody;->contentLength:J
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private final writeOrCountBytes(Lzj/n;Z)J
|
|
.locals 12
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
.line 1
|
|
new-instance p1, Lzj/m;
|
|
|
|
invoke-direct {p1}, Lzj/m;-><init>()V
|
|
|
|
move-object v0, p1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 2
|
|
:goto_0
|
|
iget-object v1, p0, Lokhttp3/MultipartBody;->parts:Ljava/util/List;
|
|
|
|
invoke-interface {v1}, Ljava/util/List;->size()I
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const-wide/16 v3, 0x0
|
|
|
|
move v5, v2
|
|
|
|
:goto_1
|
|
if-ge v5, v1, :cond_6
|
|
|
|
.line 3
|
|
iget-object v6, p0, Lokhttp3/MultipartBody;->parts:Ljava/util/List;
|
|
|
|
invoke-interface {v6, v5}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v6
|
|
|
|
check-cast v6, Lokhttp3/MultipartBody$Part;
|
|
|
|
.line 4
|
|
invoke-virtual {v6}, Lokhttp3/MultipartBody$Part;->headers()Lokhttp3/Headers;
|
|
|
|
move-result-object v7
|
|
|
|
.line 5
|
|
invoke-virtual {v6}, Lokhttp3/MultipartBody$Part;->body()Lokhttp3/RequestBody;
|
|
|
|
move-result-object v6
|
|
|
|
.line 6
|
|
invoke-static {p1}, Lkotlin/jvm/internal/f0;->m(Ljava/lang/Object;)V
|
|
|
|
sget-object v8, Lokhttp3/MultipartBody;->DASHDASH:[B
|
|
|
|
invoke-interface {p1, v8}, Lzj/n;->write([B)Lzj/n;
|
|
|
|
.line 7
|
|
iget-object v8, p0, Lokhttp3/MultipartBody;->boundaryByteString:Lokio/ByteString;
|
|
|
|
invoke-interface {p1, v8}, Lzj/n;->s1(Lokio/ByteString;)Lzj/n;
|
|
|
|
.line 8
|
|
sget-object v8, Lokhttp3/MultipartBody;->CRLF:[B
|
|
|
|
invoke-interface {p1, v8}, Lzj/n;->write([B)Lzj/n;
|
|
|
|
if-eqz v7, :cond_1
|
|
|
|
.line 9
|
|
invoke-virtual {v7}, Lokhttp3/Headers;->size()I
|
|
|
|
move-result v8
|
|
|
|
move v9, v2
|
|
|
|
:goto_2
|
|
if-ge v9, v8, :cond_1
|
|
|
|
.line 10
|
|
invoke-virtual {v7, v9}, Lokhttp3/Headers;->name(I)Ljava/lang/String;
|
|
|
|
move-result-object v10
|
|
|
|
invoke-interface {p1, v10}, Lzj/n;->P(Ljava/lang/String;)Lzj/n;
|
|
|
|
move-result-object v10
|
|
|
|
.line 11
|
|
sget-object v11, Lokhttp3/MultipartBody;->COLONSPACE:[B
|
|
|
|
invoke-interface {v10, v11}, Lzj/n;->write([B)Lzj/n;
|
|
|
|
move-result-object v10
|
|
|
|
.line 12
|
|
invoke-virtual {v7, v9}, Lokhttp3/Headers;->value(I)Ljava/lang/String;
|
|
|
|
move-result-object v11
|
|
|
|
invoke-interface {v10, v11}, Lzj/n;->P(Ljava/lang/String;)Lzj/n;
|
|
|
|
move-result-object v10
|
|
|
|
.line 13
|
|
sget-object v11, Lokhttp3/MultipartBody;->CRLF:[B
|
|
|
|
invoke-interface {v10, v11}, Lzj/n;->write([B)Lzj/n;
|
|
|
|
add-int/lit8 v9, v9, 0x1
|
|
|
|
goto :goto_2
|
|
|
|
.line 14
|
|
:cond_1
|
|
invoke-virtual {v6}, Lokhttp3/RequestBody;->contentType()Lokhttp3/MediaType;
|
|
|
|
move-result-object v7
|
|
|
|
if-eqz v7, :cond_2
|
|
|
|
const-string v8, "Content-Type: "
|
|
|
|
.line 15
|
|
invoke-interface {p1, v8}, Lzj/n;->P(Ljava/lang/String;)Lzj/n;
|
|
|
|
move-result-object v8
|
|
|
|
.line 16
|
|
invoke-virtual {v7}, Lokhttp3/MediaType;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v7
|
|
|
|
invoke-interface {v8, v7}, Lzj/n;->P(Ljava/lang/String;)Lzj/n;
|
|
|
|
move-result-object v7
|
|
|
|
.line 17
|
|
sget-object v8, Lokhttp3/MultipartBody;->CRLF:[B
|
|
|
|
invoke-interface {v7, v8}, Lzj/n;->write([B)Lzj/n;
|
|
|
|
.line 18
|
|
:cond_2
|
|
invoke-virtual {v6}, Lokhttp3/RequestBody;->contentLength()J
|
|
|
|
move-result-wide v7
|
|
|
|
const-wide/16 v9, -0x1
|
|
|
|
cmp-long v11, v7, v9
|
|
|
|
if-eqz v11, :cond_3
|
|
|
|
const-string v9, "Content-Length: "
|
|
|
|
.line 19
|
|
invoke-interface {p1, v9}, Lzj/n;->P(Ljava/lang/String;)Lzj/n;
|
|
|
|
move-result-object v9
|
|
|
|
.line 20
|
|
invoke-interface {v9, v7, v8}, Lzj/n;->m0(J)Lzj/n;
|
|
|
|
move-result-object v9
|
|
|
|
.line 21
|
|
sget-object v10, Lokhttp3/MultipartBody;->CRLF:[B
|
|
|
|
invoke-interface {v9, v10}, Lzj/n;->write([B)Lzj/n;
|
|
|
|
goto :goto_3
|
|
|
|
:cond_3
|
|
if-eqz p2, :cond_4
|
|
|
|
.line 22
|
|
invoke-static {v0}, Lkotlin/jvm/internal/f0;->m(Ljava/lang/Object;)V
|
|
|
|
invoke-virtual {v0}, Lzj/m;->c()V
|
|
|
|
return-wide v9
|
|
|
|
.line 23
|
|
:cond_4
|
|
:goto_3
|
|
sget-object v9, Lokhttp3/MultipartBody;->CRLF:[B
|
|
|
|
invoke-interface {p1, v9}, Lzj/n;->write([B)Lzj/n;
|
|
|
|
if-eqz p2, :cond_5
|
|
|
|
add-long/2addr v3, v7
|
|
|
|
goto :goto_4
|
|
|
|
.line 24
|
|
:cond_5
|
|
invoke-virtual {v6, p1}, Lokhttp3/RequestBody;->writeTo(Lzj/n;)V
|
|
|
|
.line 25
|
|
:goto_4
|
|
invoke-interface {p1, v9}, Lzj/n;->write([B)Lzj/n;
|
|
|
|
add-int/lit8 v5, v5, 0x1
|
|
|
|
goto/16 :goto_1
|
|
|
|
.line 26
|
|
:cond_6
|
|
invoke-static {p1}, Lkotlin/jvm/internal/f0;->m(Ljava/lang/Object;)V
|
|
|
|
sget-object v1, Lokhttp3/MultipartBody;->DASHDASH:[B
|
|
|
|
invoke-interface {p1, v1}, Lzj/n;->write([B)Lzj/n;
|
|
|
|
.line 27
|
|
iget-object v2, p0, Lokhttp3/MultipartBody;->boundaryByteString:Lokio/ByteString;
|
|
|
|
invoke-interface {p1, v2}, Lzj/n;->s1(Lokio/ByteString;)Lzj/n;
|
|
|
|
.line 28
|
|
invoke-interface {p1, v1}, Lzj/n;->write([B)Lzj/n;
|
|
|
|
.line 29
|
|
sget-object v1, Lokhttp3/MultipartBody;->CRLF:[B
|
|
|
|
invoke-interface {p1, v1}, Lzj/n;->write([B)Lzj/n;
|
|
|
|
if-eqz p2, :cond_7
|
|
|
|
.line 30
|
|
invoke-static {v0}, Lkotlin/jvm/internal/f0;->m(Ljava/lang/Object;)V
|
|
|
|
invoke-virtual {v0}, Lzj/m;->size()J
|
|
|
|
move-result-wide p1
|
|
|
|
add-long/2addr v3, p1
|
|
|
|
.line 31
|
|
invoke-virtual {v0}, Lzj/m;->c()V
|
|
|
|
:cond_7
|
|
return-wide v3
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final -deprecated_boundary()Ljava/lang/String;
|
|
.locals 1
|
|
.annotation runtime Lkotlin/Deprecated;
|
|
level = .enum Lkotlin/DeprecationLevel;->ERROR:Lkotlin/DeprecationLevel;
|
|
message = "moved to val"
|
|
replaceWith = .subannotation Lkotlin/ReplaceWith;
|
|
expression = "boundary"
|
|
imports = {}
|
|
.end subannotation
|
|
.end annotation
|
|
|
|
.annotation build Lkotlin/jvm/JvmName;
|
|
name = "-deprecated_boundary"
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lokhttp3/MultipartBody;->boundary()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final -deprecated_parts()Ljava/util/List;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/List<",
|
|
"Lokhttp3/MultipartBody$Part;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation runtime Lkotlin/Deprecated;
|
|
level = .enum Lkotlin/DeprecationLevel;->ERROR:Lkotlin/DeprecationLevel;
|
|
message = "moved to val"
|
|
replaceWith = .subannotation Lkotlin/ReplaceWith;
|
|
expression = "parts"
|
|
imports = {}
|
|
.end subannotation
|
|
.end annotation
|
|
|
|
.annotation build Lkotlin/jvm/JvmName;
|
|
name = "-deprecated_parts"
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lokhttp3/MultipartBody;->parts:Ljava/util/List;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final -deprecated_size()I
|
|
.locals 1
|
|
.annotation runtime Lkotlin/Deprecated;
|
|
level = .enum Lkotlin/DeprecationLevel;->ERROR:Lkotlin/DeprecationLevel;
|
|
message = "moved to val"
|
|
replaceWith = .subannotation Lkotlin/ReplaceWith;
|
|
expression = "size"
|
|
imports = {}
|
|
.end subannotation
|
|
.end annotation
|
|
|
|
.annotation build Lkotlin/jvm/JvmName;
|
|
name = "-deprecated_size"
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lokhttp3/MultipartBody;->size()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final -deprecated_type()Lokhttp3/MediaType;
|
|
.locals 1
|
|
.annotation runtime Lkotlin/Deprecated;
|
|
level = .enum Lkotlin/DeprecationLevel;->ERROR:Lkotlin/DeprecationLevel;
|
|
message = "moved to val"
|
|
replaceWith = .subannotation Lkotlin/ReplaceWith;
|
|
expression = "type"
|
|
imports = {}
|
|
.end subannotation
|
|
.end annotation
|
|
|
|
.annotation build Lkotlin/jvm/JvmName;
|
|
name = "-deprecated_type"
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lokhttp3/MultipartBody;->type:Lokhttp3/MediaType;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final boundary()Ljava/lang/String;
|
|
.locals 1
|
|
.annotation build Lkotlin/jvm/JvmName;
|
|
name = "boundary"
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lokhttp3/MultipartBody;->boundaryByteString:Lokio/ByteString;
|
|
|
|
invoke-virtual {v0}, Lokio/ByteString;->utf8()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public contentLength()J
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-wide v0, p0, Lokhttp3/MultipartBody;->contentLength:J
|
|
|
|
const-wide/16 v2, -0x1
|
|
|
|
cmp-long v2, v0, v2
|
|
|
|
if-nez v2, :cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
.line 2
|
|
invoke-direct {p0, v0, v1}, Lokhttp3/MultipartBody;->writeOrCountBytes(Lzj/n;Z)J
|
|
|
|
move-result-wide v0
|
|
|
|
.line 3
|
|
iput-wide v0, p0, Lokhttp3/MultipartBody;->contentLength:J
|
|
|
|
:cond_0
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public contentType()Lokhttp3/MediaType;
|
|
.locals 1
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lokhttp3/MultipartBody;->contentType:Lokhttp3/MediaType;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final part(I)Lokhttp3/MultipartBody$Part;
|
|
.locals 1
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lokhttp3/MultipartBody;->parts:Ljava/util/List;
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Lokhttp3/MultipartBody$Part;
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final parts()Ljava/util/List;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/List<",
|
|
"Lokhttp3/MultipartBody$Part;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation build Lkotlin/jvm/JvmName;
|
|
name = "parts"
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lokhttp3/MultipartBody;->parts:Ljava/util/List;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final size()I
|
|
.locals 1
|
|
.annotation build Lkotlin/jvm/JvmName;
|
|
name = "size"
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lokhttp3/MultipartBody;->parts:Ljava/util/List;
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->size()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final type()Lokhttp3/MediaType;
|
|
.locals 1
|
|
.annotation build Lkotlin/jvm/JvmName;
|
|
name = "type"
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lokhttp3/MultipartBody;->type:Lokhttp3/MediaType;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public writeTo(Lzj/n;)V
|
|
.locals 1
|
|
.param p1 # Lzj/n;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "sink"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 1
|
|
invoke-direct {p0, p1, v0}, Lokhttp3/MultipartBody;->writeOrCountBytes(Lzj/n;Z)J
|
|
|
|
return-void
|
|
.end method
|