You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
98 lines
2.1 KiB
98 lines
2.1 KiB
2 years ago
|
.class final Lokhttp3/RequestBody$3;
|
||
|
.super Lokhttp3/RequestBody;
|
||
|
.source "RequestBody.java"
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
||
|
value = Lokhttp3/RequestBody;->create(Lokhttp3/MediaType;Ljava/io/File;)Lokhttp3/RequestBody;
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/InnerClass;
|
||
|
accessFlags = 0x8
|
||
|
name = null
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field final synthetic val$contentType:Lokhttp3/MediaType;
|
||
|
|
||
|
.field final synthetic val$file:Ljava/io/File;
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method constructor <init>(Lokhttp3/MediaType;Ljava/io/File;)V
|
||
|
.locals 0
|
||
|
|
||
|
.prologue
|
||
|
.line 105
|
||
|
iput-object p1, p0, Lokhttp3/RequestBody$3;->val$contentType:Lokhttp3/MediaType;
|
||
|
|
||
|
iput-object p2, p0, Lokhttp3/RequestBody$3;->val$file:Ljava/io/File;
|
||
|
|
||
|
invoke-direct {p0}, Lokhttp3/RequestBody;-><init>()V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public contentLength()J
|
||
|
.locals 2
|
||
|
|
||
|
.prologue
|
||
|
.line 111
|
||
|
iget-object v0, p0, Lokhttp3/RequestBody$3;->val$file:Ljava/io/File;
|
||
|
|
||
|
invoke-virtual {v0}, Ljava/io/File;->length()J
|
||
|
|
||
|
move-result-wide v0
|
||
|
|
||
|
return-wide v0
|
||
|
.end method
|
||
|
|
||
|
.method public contentType()Lokhttp3/MediaType;
|
||
|
.locals 1
|
||
|
|
||
|
.prologue
|
||
|
.line 107
|
||
|
iget-object v0, p0, Lokhttp3/RequestBody$3;->val$contentType:Lokhttp3/MediaType;
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public writeTo(Lokio/BufferedSink;)V
|
||
|
.locals 2
|
||
|
|
||
|
.prologue
|
||
|
.line 115
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
.line 117
|
||
|
:try_start_0
|
||
|
iget-object v0, p0, Lokhttp3/RequestBody$3;->val$file:Ljava/io/File;
|
||
|
|
||
|
invoke-static {v0}, Lokio/Okio;->source(Ljava/io/File;)Lokio/Source;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
.line 118
|
||
|
invoke-interface {p1, v1}, Lokio/BufferedSink;->writeAll(Lokio/Source;)J
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
.line 120
|
||
|
invoke-static {v1}, Lokhttp3/internal/Util;->closeQuietly(Ljava/io/Closeable;)V
|
||
|
|
||
|
.line 122
|
||
|
return-void
|
||
|
|
||
|
.line 120
|
||
|
:catchall_0
|
||
|
move-exception v0
|
||
|
|
||
|
invoke-static {v1}, Lokhttp3/internal/Util;->closeQuietly(Ljava/io/Closeable;)V
|
||
|
|
||
|
throw v0
|
||
|
.end method
|