101 lines
2.2 KiB
Smali
101 lines
2.2 KiB
Smali
.class final Lokhttp3/RequestBody$3;
|
|
.super Lokhttp3/RequestBody;
|
|
|
|
|
|
# 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 = 0x0
|
|
name = null
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final synthetic cam:Lokhttp3/MediaType;
|
|
|
|
.field final synthetic car:Ljava/io/File;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Lokhttp3/MediaType;Ljava/io/File;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lokhttp3/RequestBody$3;->cam:Lokhttp3/MediaType;
|
|
|
|
iput-object p2, p0, Lokhttp3/RequestBody$3;->car:Ljava/io/File;
|
|
|
|
invoke-direct {p0}, Lokhttp3/RequestBody;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final contentLength()J
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lokhttp3/RequestBody$3;->car:Ljava/io/File;
|
|
|
|
invoke-virtual {v0}, Ljava/io/File;->length()J
|
|
|
|
move-result-wide v0
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public final contentType()Lokhttp3/MediaType;
|
|
.locals 1
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lokhttp3/RequestBody$3;->cam:Lokhttp3/MediaType;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final writeTo(Lokio/BufferedSink;)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
:try_start_0
|
|
iget-object v1, p0, Lokhttp3/RequestBody$3;->car:Ljava/io/File;
|
|
|
|
invoke-static {v1}, Lokio/j;->B(Ljava/io/File;)Lokio/q;
|
|
|
|
move-result-object v1
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_1
|
|
|
|
:try_start_1
|
|
invoke-interface {p1, v1}, Lokio/BufferedSink;->a(Lokio/q;)J
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
invoke-static {v1}, Lokhttp3/internal/c;->closeQuietly(Ljava/io/Closeable;)V
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
move-object v0, v1
|
|
|
|
goto :goto_0
|
|
|
|
:catchall_1
|
|
move-exception p1
|
|
|
|
:goto_0
|
|
invoke-static {v0}, Lokhttp3/internal/c;->closeQuietly(Ljava/io/Closeable;)V
|
|
|
|
throw p1
|
|
.end method
|