68 lines
1.5 KiB
Smali
68 lines
1.5 KiB
Smali
.class public final Lokhttp3/internal/http/RealResponseBody;
|
|
.super Lokhttp3/ResponseBody;
|
|
.source "SourceFile"
|
|
|
|
|
|
# instance fields
|
|
.field public final contentLength:J
|
|
|
|
.field public final contentTypeString:Ljava/lang/String;
|
|
|
|
.field public final source:Lokio/BufferedSource;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Ljava/lang/String;JLokio/BufferedSource;)V
|
|
.locals 0
|
|
|
|
.line 33
|
|
invoke-direct {p0}, Lokhttp3/ResponseBody;-><init>()V
|
|
|
|
iput-object p1, p0, Lokhttp3/internal/http/RealResponseBody;->contentTypeString:Ljava/lang/String;
|
|
|
|
iput-wide p2, p0, Lokhttp3/internal/http/RealResponseBody;->contentLength:J
|
|
|
|
iput-object p4, p0, Lokhttp3/internal/http/RealResponseBody;->source:Lokio/BufferedSource;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public contentLength()J
|
|
.locals 2
|
|
|
|
iget-wide v0, p0, Lokhttp3/internal/http/RealResponseBody;->contentLength:J
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public contentType()Lokhttp3/MediaType;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/http/RealResponseBody;->contentTypeString:Ljava/lang/String;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 40
|
|
invoke-static {v0}, Lokhttp3/MediaType;->parse(Ljava/lang/String;)Lokhttp3/MediaType;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public source()Lokio/BufferedSource;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/http/RealResponseBody;->source:Lokio/BufferedSource;
|
|
|
|
return-object v0
|
|
.end method
|