Buffer$2.smali 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. .class Lokio/Buffer$2;
  2. .super Ljava/io/InputStream;
  3. .source ""
  4. # annotations
  5. .annotation system Ldalvik/annotation/EnclosingMethod;
  6. value = Lokio/Buffer;->inputStream()Ljava/io/InputStream;
  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 this$0:Lokio/Buffer;
  14. # direct methods
  15. .method constructor <init>(Lokio/Buffer;)V
  16. .locals 0
  17. iput-object p1, p0, Lokio/Buffer$2;->this$0:Lokio/Buffer;
  18. invoke-direct {p0}, Ljava/io/InputStream;-><init>()V
  19. return-void
  20. .end method
  21. # virtual methods
  22. .method public available()I
  23. .locals 4
  24. iget-object v0, p0, Lokio/Buffer$2;->this$0:Lokio/Buffer;
  25. iget-wide v0, v0, Lokio/Buffer;->size:J
  26. const-wide/32 v2, 0x7fffffff
  27. invoke-static {v0, v1, v2, v3}, Ljava/lang/Math;->min(JJ)J
  28. move-result-wide v0
  29. long-to-int v1, v0
  30. return v1
  31. .end method
  32. .method public close()V
  33. .locals 0
  34. return-void
  35. .end method
  36. .method public read()I
  37. .locals 6
  38. iget-object v0, p0, Lokio/Buffer$2;->this$0:Lokio/Buffer;
  39. iget-wide v1, v0, Lokio/Buffer;->size:J
  40. const-wide/16 v3, 0x0
  41. cmp-long v5, v1, v3
  42. if-lez v5, :cond_0
  43. invoke-virtual {v0}, Lokio/Buffer;->readByte()B
  44. move-result v0
  45. and-int/lit16 v0, v0, 0xff
  46. return v0
  47. :cond_0
  48. const/4 v0, -0x1
  49. return v0
  50. .end method
  51. .method public read([BII)I
  52. .locals 1
  53. iget-object v0, p0, Lokio/Buffer$2;->this$0:Lokio/Buffer;
  54. invoke-virtual {v0, p1, p2, p3}, Lokio/Buffer;->read([BII)I
  55. move-result p1
  56. return p1
  57. .end method
  58. .method public toString()Ljava/lang/String;
  59. .locals 2
  60. new-instance v0, Ljava/lang/StringBuilder;
  61. invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
  62. iget-object v1, p0, Lokio/Buffer$2;->this$0:Lokio/Buffer;
  63. invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
  64. const-string v1, ".inputStream()"
  65. invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  66. invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
  67. move-result-object v0
  68. return-object v0
  69. .end method