RealResponseBody.smali 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. .class public final Lokhttp3/internal/http/RealResponseBody;
  2. .super Lokhttp3/ResponseBody;
  3. .source ""
  4. # instance fields
  5. .field private final contentLength:J
  6. .field private final contentTypeString:Ljava/lang/String;
  7. .field private final source:Lokio/BufferedSource;
  8. # direct methods
  9. .method public constructor <init>(Ljava/lang/String;JLokio/BufferedSource;)V
  10. .locals 0
  11. invoke-direct {p0}, Lokhttp3/ResponseBody;-><init>()V
  12. iput-object p1, p0, Lokhttp3/internal/http/RealResponseBody;->contentTypeString:Ljava/lang/String;
  13. iput-wide p2, p0, Lokhttp3/internal/http/RealResponseBody;->contentLength:J
  14. iput-object p4, p0, Lokhttp3/internal/http/RealResponseBody;->source:Lokio/BufferedSource;
  15. return-void
  16. .end method
  17. # virtual methods
  18. .method public contentLength()J
  19. .locals 2
  20. iget-wide v0, p0, Lokhttp3/internal/http/RealResponseBody;->contentLength:J
  21. return-wide v0
  22. .end method
  23. .method public contentType()Lokhttp3/MediaType;
  24. .locals 1
  25. iget-object v0, p0, Lokhttp3/internal/http/RealResponseBody;->contentTypeString:Ljava/lang/String;
  26. if-eqz v0, :cond_0
  27. invoke-static {v0}, Lokhttp3/MediaType;->parse(Ljava/lang/String;)Lokhttp3/MediaType;
  28. move-result-object v0
  29. goto :goto_0
  30. :cond_0
  31. const/4 v0, 0x0
  32. :goto_0
  33. return-object v0
  34. .end method
  35. .method public source()Lokio/BufferedSource;
  36. .locals 1
  37. iget-object v0, p0, Lokhttp3/internal/http/RealResponseBody;->source:Lokio/BufferedSource;
  38. return-object v0
  39. .end method