RequestBody$1.smali 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. .class final Lokhttp3/RequestBody$1;
  2. .super Lokhttp3/RequestBody;
  3. .source ""
  4. # annotations
  5. .annotation system Ldalvik/annotation/EnclosingMethod;
  6. value = Lokhttp3/RequestBody;->create(Lokhttp3/MediaType;Lokio/ByteString;)Lokhttp3/RequestBody;
  7. .end annotation
  8. .annotation system Ldalvik/annotation/InnerClass;
  9. accessFlags = 0x0
  10. name = null
  11. .end annotation
  12. # instance fields
  13. .field final synthetic val$content:Lokio/ByteString;
  14. .field final synthetic val$contentType:Lokhttp3/MediaType;
  15. # direct methods
  16. .method constructor <init>(Lokhttp3/MediaType;Lokio/ByteString;)V
  17. .locals 0
  18. iput-object p1, p0, Lokhttp3/RequestBody$1;->val$contentType:Lokhttp3/MediaType;
  19. iput-object p2, p0, Lokhttp3/RequestBody$1;->val$content:Lokio/ByteString;
  20. invoke-direct {p0}, Lokhttp3/RequestBody;-><init>()V
  21. return-void
  22. .end method
  23. # virtual methods
  24. .method public contentLength()J
  25. .locals 2
  26. .annotation system Ldalvik/annotation/Throws;
  27. value = {
  28. Ljava/io/IOException;
  29. }
  30. .end annotation
  31. iget-object v0, p0, Lokhttp3/RequestBody$1;->val$content:Lokio/ByteString;
  32. invoke-virtual {v0}, Lokio/ByteString;->size()I
  33. move-result v0
  34. int-to-long v0, v0
  35. return-wide v0
  36. .end method
  37. .method public contentType()Lokhttp3/MediaType;
  38. .locals 1
  39. iget-object v0, p0, Lokhttp3/RequestBody$1;->val$contentType:Lokhttp3/MediaType;
  40. return-object v0
  41. .end method
  42. .method public writeTo(Lokio/BufferedSink;)V
  43. .locals 1
  44. .annotation system Ldalvik/annotation/Throws;
  45. value = {
  46. Ljava/io/IOException;
  47. }
  48. .end annotation
  49. iget-object v0, p0, Lokhttp3/RequestBody$1;->val$content:Lokio/ByteString;
  50. invoke-interface {p1, v0}, Lokio/BufferedSink;->write(Lokio/ByteString;)Lokio/BufferedSink;
  51. return-void
  52. .end method