RequestBody$3.smali 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. .class final Lokhttp3/RequestBody$3;
  2. .super Lokhttp3/RequestBody;
  3. .source ""
  4. # annotations
  5. .annotation system Ldalvik/annotation/EnclosingMethod;
  6. value = Lokhttp3/RequestBody;->create(Lokhttp3/MediaType;Ljava/io/File;)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$contentType:Lokhttp3/MediaType;
  14. .field final synthetic val$file:Ljava/io/File;
  15. # direct methods
  16. .method constructor <init>(Lokhttp3/MediaType;Ljava/io/File;)V
  17. .locals 0
  18. iput-object p1, p0, Lokhttp3/RequestBody$3;->val$contentType:Lokhttp3/MediaType;
  19. iput-object p2, p0, Lokhttp3/RequestBody$3;->val$file:Ljava/io/File;
  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. iget-object v0, p0, Lokhttp3/RequestBody$3;->val$file:Ljava/io/File;
  27. invoke-virtual {v0}, Ljava/io/File;->length()J
  28. move-result-wide v0
  29. return-wide v0
  30. .end method
  31. .method public contentType()Lokhttp3/MediaType;
  32. .locals 1
  33. iget-object v0, p0, Lokhttp3/RequestBody$3;->val$contentType:Lokhttp3/MediaType;
  34. return-object v0
  35. .end method
  36. .method public writeTo(Lokio/BufferedSink;)V
  37. .locals 2
  38. .annotation system Ldalvik/annotation/Throws;
  39. value = {
  40. Ljava/io/IOException;
  41. }
  42. .end annotation
  43. const/4 v0, 0x0
  44. :try_start_0
  45. iget-object v1, p0, Lokhttp3/RequestBody$3;->val$file:Ljava/io/File;
  46. invoke-static {v1}, Lokio/Okio;->source(Ljava/io/File;)Lokio/Source;
  47. move-result-object v0
  48. invoke-interface {p1, v0}, Lokio/BufferedSink;->writeAll(Lokio/Source;)J
  49. :try_end_0
  50. .catchall {:try_start_0 .. :try_end_0} :catchall_0
  51. invoke-static {v0}, Lokhttp3/internal/Util;->closeQuietly(Ljava/io/Closeable;)V
  52. return-void
  53. :catchall_0
  54. move-exception p1
  55. invoke-static {v0}, Lokhttp3/internal/Util;->closeQuietly(Ljava/io/Closeable;)V
  56. throw p1
  57. .end method