Streams$AppendableWriter.smali 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. .class final Lcom/google/gson/internal/Streams$AppendableWriter;
  2. .super Ljava/io/Writer;
  3. .source ""
  4. # annotations
  5. .annotation system Ldalvik/annotation/EnclosingClass;
  6. value = Lcom/google/gson/internal/Streams;
  7. .end annotation
  8. .annotation system Ldalvik/annotation/InnerClass;
  9. accessFlags = 0x1a
  10. name = "AppendableWriter"
  11. .end annotation
  12. .annotation system Ldalvik/annotation/MemberClasses;
  13. value = {
  14. Lcom/google/gson/internal/Streams$AppendableWriter$CurrentWrite;
  15. }
  16. .end annotation
  17. # instance fields
  18. .field private final appendable:Ljava/lang/Appendable;
  19. .field private final currentWrite:Lcom/google/gson/internal/Streams$AppendableWriter$CurrentWrite;
  20. # direct methods
  21. .method constructor <init>(Ljava/lang/Appendable;)V
  22. .locals 1
  23. invoke-direct {p0}, Ljava/io/Writer;-><init>()V
  24. new-instance v0, Lcom/google/gson/internal/Streams$AppendableWriter$CurrentWrite;
  25. invoke-direct {v0}, Lcom/google/gson/internal/Streams$AppendableWriter$CurrentWrite;-><init>()V
  26. iput-object v0, p0, Lcom/google/gson/internal/Streams$AppendableWriter;->currentWrite:Lcom/google/gson/internal/Streams$AppendableWriter$CurrentWrite;
  27. iput-object p1, p0, Lcom/google/gson/internal/Streams$AppendableWriter;->appendable:Ljava/lang/Appendable;
  28. return-void
  29. .end method
  30. # virtual methods
  31. .method public close()V
  32. .locals 0
  33. return-void
  34. .end method
  35. .method public flush()V
  36. .locals 0
  37. return-void
  38. .end method
  39. .method public write(I)V
  40. .locals 1
  41. .annotation system Ldalvik/annotation/Throws;
  42. value = {
  43. Ljava/io/IOException;
  44. }
  45. .end annotation
  46. iget-object v0, p0, Lcom/google/gson/internal/Streams$AppendableWriter;->appendable:Ljava/lang/Appendable;
  47. int-to-char p1, p1
  48. invoke-interface {v0, p1}, Ljava/lang/Appendable;->append(C)Ljava/lang/Appendable;
  49. return-void
  50. .end method
  51. .method public write([CII)V
  52. .locals 1
  53. .annotation system Ldalvik/annotation/Throws;
  54. value = {
  55. Ljava/io/IOException;
  56. }
  57. .end annotation
  58. iget-object v0, p0, Lcom/google/gson/internal/Streams$AppendableWriter;->currentWrite:Lcom/google/gson/internal/Streams$AppendableWriter$CurrentWrite;
  59. iput-object p1, v0, Lcom/google/gson/internal/Streams$AppendableWriter$CurrentWrite;->chars:[C
  60. iget-object p1, p0, Lcom/google/gson/internal/Streams$AppendableWriter;->appendable:Ljava/lang/Appendable;
  61. add-int/2addr p3, p2
  62. invoke-interface {p1, v0, p2, p3}, Ljava/lang/Appendable;->append(Ljava/lang/CharSequence;II)Ljava/lang/Appendable;
  63. return-void
  64. .end method