F.smali
.class Lokhttp3/F;
.super Lokhttp3/G;
.source "RequestBody.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lokhttp3/G;->create(Lokhttp3/w;Ljava/io/File;)Lokhttp3/G;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field final synthetic a:Lokhttp3/w;
.field final synthetic b:Ljava/io/File;
# direct methods
.method constructor <init>(Lokhttp3/w;Ljava/io/File;)V
.registers 3
.line 1
iput-object p1, p0, Lokhttp3/F;->a:Lokhttp3/w;
iput-object p2, p0, Lokhttp3/F;->b:Ljava/io/File;
invoke-direct {p0}, Lokhttp3/G;-><init>()V
return-void
.end method
# virtual methods
.method public contentLength()J
.registers 3
.line 1
iget-object v0, p0, Lokhttp3/F;->b:Ljava/io/File;
invoke-virtual {v0}, Ljava/io/File;->length()J
move-result-wide v0
return-wide v0
.end method
.method public contentType()Lokhttp3/w;
.registers 2
.line 1
iget-object v0, p0, Lokhttp3/F;->a:Lokhttp3/w;
return-object v0
.end method
.method public writeTo(Lokio/BufferedSink;)V
.registers 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const/4 v0, 0x0
.line 1
:try_start_1
iget-object v1, p0, Lokhttp3/F;->b:Ljava/io/File;
invoke-static {v1}, Lokio/Okio;->source(Ljava/io/File;)Lokio/Source;
move-result-object v0
.line 2
invoke-interface {p1, v0}, Lokio/BufferedSink;->writeAll(Lokio/Source;)J
:try_end_a
.catchall {:try_start_1 .. :try_end_a} :catchall_e
.line 3
invoke-static {v0}, Lokhttp3/a/e;->a(Ljava/io/Closeable;)V
return-void
:catchall_e
move-exception p1
invoke-static {v0}, Lokhttp3/a/e;->a(Ljava/io/Closeable;)V
throw p1
.end method