class org.bson.json.JsonStreamBuffer implements org.bson.json.JsonBuffer
  minor version: 0
  major version: 59
  flags: flags: (0x0020) ACC_SUPER
  this_class: org.bson.json.JsonStreamBuffer
  super_class: java.lang.Object
{
  private final java.io.Reader reader;
    descriptor: Ljava/io/Reader;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private final java.util.List<java.lang.Integer> markedPositions;
    descriptor: Ljava/util/List;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL
    Signature: Ljava/util/List<Ljava/lang/Integer;>;

  private final int initialBufferSize;
    descriptor: I
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private int position;
    descriptor: I
    flags: (0x0002) ACC_PRIVATE

  private int lastChar;
    descriptor: I
    flags: (0x0002) ACC_PRIVATE

  private boolean reuseLastChar;
    descriptor: Z
    flags: (0x0002) ACC_PRIVATE

  private boolean eof;
    descriptor: Z
    flags: (0x0002) ACC_PRIVATE

  private char[] buffer;
    descriptor: [C
    flags: (0x0002) ACC_PRIVATE

  private int bufferStartPos;
    descriptor: I
    flags: (0x0002) ACC_PRIVATE

  private int bufferCount;
    descriptor: I
    flags: (0x0002) ACC_PRIVATE

  void <init>(java.io.Reader);
    descriptor: (Ljava/io/Reader;)V
    flags: (0x0000) 
    Code:
      stack=3, locals=2, args_size=2
        start local 0 // org.bson.json.JsonStreamBuffer this
        start local 1 // java.io.Reader reader
         0: .line 38
            aload 0 /* this */
            aload 1 /* reader */
            bipush 16
            invokespecial org.bson.json.JsonStreamBuffer.<init>:(Ljava/io/Reader;I)V
         1: .line 39
            return
        end local 1 // java.io.Reader reader
        end local 0 // org.bson.json.JsonStreamBuffer this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    2     0    this  Lorg/bson/json/JsonStreamBuffer;
            0    2     1  reader  Ljava/io/Reader;
    MethodParameters:
        Name  Flags
      reader  final

  void <init>(java.io.Reader, int);
    descriptor: (Ljava/io/Reader;I)V
    flags: (0x0000) 
    Code:
      stack=3, locals=3, args_size=3
        start local 0 // org.bson.json.JsonStreamBuffer this
        start local 1 // java.io.Reader reader
        start local 2 // int initialBufferSize
         0: .line 41
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 27
            aload 0 /* this */
            new java.util.ArrayList
            dup
            invokespecial java.util.ArrayList.<init>:()V
            putfield org.bson.json.JsonStreamBuffer.markedPositions:Ljava/util/List;
         2: .line 42
            aload 0 /* this */
            iload 2 /* initialBufferSize */
            putfield org.bson.json.JsonStreamBuffer.initialBufferSize:I
         3: .line 43
            aload 0 /* this */
            aload 1 /* reader */
            putfield org.bson.json.JsonStreamBuffer.reader:Ljava/io/Reader;
         4: .line 44
            aload 0 /* this */
            invokevirtual org.bson.json.JsonStreamBuffer.resetBuffer:()V
         5: .line 45
            return
        end local 2 // int initialBufferSize
        end local 1 // java.io.Reader reader
        end local 0 // org.bson.json.JsonStreamBuffer this
      LocalVariableTable:
        Start  End  Slot               Name  Signature
            0    6     0               this  Lorg/bson/json/JsonStreamBuffer;
            0    6     1             reader  Ljava/io/Reader;
            0    6     2  initialBufferSize  I
    MethodParameters:
                   Name  Flags
      reader             final
      initialBufferSize  final

  public int getPosition();
    descriptor: ()I
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // org.bson.json.JsonStreamBuffer this
         0: .line 48
            aload 0 /* this */
            getfield org.bson.json.JsonStreamBuffer.position:I
            ireturn
        end local 0 // org.bson.json.JsonStreamBuffer this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/bson/json/JsonStreamBuffer;

  public int read();
    descriptor: ()I
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=2, args_size=1
        start local 0 // org.bson.json.JsonStreamBuffer this
         0: .line 52
            aload 0 /* this */
            getfield org.bson.json.JsonStreamBuffer.eof:Z
            ifeq 2
         1: .line 53
            new org.bson.json.JsonParseException
            dup
            ldc "Trying to read past EOF."
            invokespecial org.bson.json.JsonParseException.<init>:(Ljava/lang/String;)V
            athrow
         2: .line 58
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.bson.json.JsonStreamBuffer.reuseLastChar:Z
            ifeq 8
         3: .line 59
            aload 0 /* this */
            iconst_0
            putfield org.bson.json.JsonStreamBuffer.reuseLastChar:Z
         4: .line 60
            aload 0 /* this */
            getfield org.bson.json.JsonStreamBuffer.lastChar:I
            istore 1 /* reusedChar */
        start local 1 // int reusedChar
         5: .line 61
            aload 0 /* this */
            iconst_m1
            putfield org.bson.json.JsonStreamBuffer.lastChar:I
         6: .line 62
            aload 0 /* this */
            dup
            getfield org.bson.json.JsonStreamBuffer.position:I
            iconst_1
            iadd
            putfield org.bson.json.JsonStreamBuffer.position:I
         7: .line 63
            iload 1 /* reusedChar */
            ireturn
        end local 1 // int reusedChar
         8: .line 67
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.bson.json.JsonStreamBuffer.position:I
            aload 0 /* this */
            getfield org.bson.json.JsonStreamBuffer.bufferStartPos:I
            isub
            aload 0 /* this */
            getfield org.bson.json.JsonStreamBuffer.bufferCount:I
            if_icmpge 13
         9: .line 68
            aload 0 /* this */
            getfield org.bson.json.JsonStreamBuffer.buffer:[C
            aload 0 /* this */
            getfield org.bson.json.JsonStreamBuffer.position:I
            aload 0 /* this */
            getfield org.bson.json.JsonStreamBuffer.bufferStartPos:I
            isub
            caload
            istore 1 /* currChar */
        start local 1 // int currChar
        10: .line 69
            aload 0 /* this */
            iload 1 /* currChar */
            putfield org.bson.json.JsonStreamBuffer.lastChar:I
        11: .line 70
            aload 0 /* this */
            dup
            getfield org.bson.json.JsonStreamBuffer.position:I
            iconst_1
            iadd
            putfield org.bson.json.JsonStreamBuffer.position:I
        12: .line 71
            iload 1 /* currChar */
            ireturn
        end local 1 // int currChar
        13: .line 74
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.bson.json.JsonStreamBuffer.markedPositions:Ljava/util/List;
            invokeinterface java.util.List.isEmpty:()Z
            ifeq 15
        14: .line 75
            aload 0 /* this */
            invokevirtual org.bson.json.JsonStreamBuffer.resetBuffer:()V
        15: .line 80
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.bson.json.JsonStreamBuffer.reader:Ljava/io/Reader;
            invokevirtual java.io.Reader.read:()I
            istore 1 /* nextChar */
        start local 1 // int nextChar
        16: .line 81
            iload 1 /* nextChar */
            iconst_m1
            if_icmpeq 19
        17: .line 82
            aload 0 /* this */
            iload 1 /* nextChar */
            putfield org.bson.json.JsonStreamBuffer.lastChar:I
        18: .line 83
            aload 0 /* this */
            iload 1 /* nextChar */
            i2c
            invokevirtual org.bson.json.JsonStreamBuffer.addToBuffer:(C)V
        19: .line 85
      StackMap locals: int
      StackMap stack:
            aload 0 /* this */
            dup
            getfield org.bson.json.JsonStreamBuffer.position:I
            iconst_1
            iadd
            putfield org.bson.json.JsonStreamBuffer.position:I
        20: .line 86
            iload 1 /* nextChar */
            iconst_m1
            if_icmpne 22
        21: .line 87
            aload 0 /* this */
            iconst_1
            putfield org.bson.json.JsonStreamBuffer.eof:Z
        22: .line 89
      StackMap locals:
      StackMap stack:
            iload 1 /* nextChar */
        23: ireturn
        end local 1 // int nextChar
        24: .line 91
      StackMap locals: org.bson.json.JsonStreamBuffer
      StackMap stack: java.io.IOException
            astore 1 /* e */
        start local 1 // java.io.IOException e
        25: .line 92
            new org.bson.json.JsonParseException
            dup
            aload 1 /* e */
            invokespecial org.bson.json.JsonParseException.<init>:(Ljava/lang/Throwable;)V
            athrow
        end local 1 // java.io.IOException e
        end local 0 // org.bson.json.JsonStreamBuffer this
      LocalVariableTable:
        Start  End  Slot        Name  Signature
            0   26     0        this  Lorg/bson/json/JsonStreamBuffer;
            5    8     1  reusedChar  I
           10   13     1    currChar  I
           16   24     1    nextChar  I
           25   26     1           e  Ljava/io/IOException;
      Exception table:
        from    to  target  type
          15    23      24  Class java.io.IOException

  private void resetBuffer();
    descriptor: ()V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // org.bson.json.JsonStreamBuffer this
         0: .line 97
            aload 0 /* this */
            iconst_m1
            putfield org.bson.json.JsonStreamBuffer.bufferStartPos:I
         1: .line 98
            aload 0 /* this */
            iconst_0
            putfield org.bson.json.JsonStreamBuffer.bufferCount:I
         2: .line 99
            aload 0 /* this */
            aload 0 /* this */
            getfield org.bson.json.JsonStreamBuffer.initialBufferSize:I
            newarray 5
            putfield org.bson.json.JsonStreamBuffer.buffer:[C
         3: .line 100
            return
        end local 0 // org.bson.json.JsonStreamBuffer this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    4     0  this  Lorg/bson/json/JsonStreamBuffer;

  public void unread(int);
    descriptor: (I)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=2, args_size=2
        start local 0 // org.bson.json.JsonStreamBuffer this
        start local 1 // int c
         0: .line 103
            aload 0 /* this */
            iconst_0
            putfield org.bson.json.JsonStreamBuffer.eof:Z
         1: .line 104
            iload 1 /* c */
            iconst_m1
            if_icmpeq 4
            aload 0 /* this */
            getfield org.bson.json.JsonStreamBuffer.lastChar:I
            iload 1 /* c */
            if_icmpne 4
         2: .line 105
            aload 0 /* this */
            iconst_1
            putfield org.bson.json.JsonStreamBuffer.reuseLastChar:Z
         3: .line 106
            aload 0 /* this */
            dup
            getfield org.bson.json.JsonStreamBuffer.position:I
            iconst_1
            isub
            putfield org.bson.json.JsonStreamBuffer.position:I
         4: .line 108
      StackMap locals:
      StackMap stack:
            return
        end local 1 // int c
        end local 0 // org.bson.json.JsonStreamBuffer this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    5     0  this  Lorg/bson/json/JsonStreamBuffer;
            0    5     1     c  I
    MethodParameters:
      Name  Flags
      c     final

  public int mark();
    descriptor: ()I
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // org.bson.json.JsonStreamBuffer this
         0: .line 111
            aload 0 /* this */
            getfield org.bson.json.JsonStreamBuffer.bufferCount:I
            ifne 2
         1: .line 112
            aload 0 /* this */
            aload 0 /* this */
            getfield org.bson.json.JsonStreamBuffer.position:I
            putfield org.bson.json.JsonStreamBuffer.bufferStartPos:I
         2: .line 114
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.bson.json.JsonStreamBuffer.markedPositions:Ljava/util/List;
            aload 0 /* this */
            getfield org.bson.json.JsonStreamBuffer.position:I
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            invokeinterface java.util.List.contains:(Ljava/lang/Object;)Z
            ifne 4
         3: .line 115
            aload 0 /* this */
            getfield org.bson.json.JsonStreamBuffer.markedPositions:Ljava/util/List;
            aload 0 /* this */
            getfield org.bson.json.JsonStreamBuffer.position:I
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
            pop
         4: .line 117
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.bson.json.JsonStreamBuffer.position:I
            ireturn
        end local 0 // org.bson.json.JsonStreamBuffer this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    5     0  this  Lorg/bson/json/JsonStreamBuffer;

  public void reset(int);
    descriptor: (I)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=3, args_size=2
        start local 0 // org.bson.json.JsonStreamBuffer this
        start local 1 // int markPos
         0: .line 121
            iload 1 /* markPos */
            aload 0 /* this */
            getfield org.bson.json.JsonStreamBuffer.position:I
            if_icmple 2
         1: .line 122
            new java.lang.IllegalStateException
            dup
            ldc "mark cannot reset ahead of position, only back"
            invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
            athrow
         2: .line 124
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.bson.json.JsonStreamBuffer.markedPositions:Ljava/util/List;
            iload 1 /* markPos */
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            invokeinterface java.util.List.indexOf:(Ljava/lang/Object;)I
            istore 2 /* idx */
        start local 2 // int idx
         3: .line 125
            iload 2 /* idx */
            iconst_m1
            if_icmpne 5
         4: .line 126
            new java.lang.IllegalArgumentException
            dup
            ldc "mark invalidated"
            invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
            athrow
         5: .line 128
      StackMap locals: int
      StackMap stack:
            iload 1 /* markPos */
            aload 0 /* this */
            getfield org.bson.json.JsonStreamBuffer.position:I
            if_icmpeq 7
         6: .line 129
            aload 0 /* this */
            iconst_0
            putfield org.bson.json.JsonStreamBuffer.reuseLastChar:Z
         7: .line 131
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.bson.json.JsonStreamBuffer.markedPositions:Ljava/util/List;
            iload 2 /* idx */
            aload 0 /* this */
            getfield org.bson.json.JsonStreamBuffer.markedPositions:Ljava/util/List;
            invokeinterface java.util.List.size:()I
            invokeinterface java.util.List.subList:(II)Ljava/util/List;
            invokeinterface java.util.List.clear:()V
         8: .line 132
            aload 0 /* this */
            iload 1 /* markPos */
            putfield org.bson.json.JsonStreamBuffer.position:I
         9: .line 133
            return
        end local 2 // int idx
        end local 1 // int markPos
        end local 0 // org.bson.json.JsonStreamBuffer this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0   10     0     this  Lorg/bson/json/JsonStreamBuffer;
            0   10     1  markPos  I
            3   10     2      idx  I
    MethodParameters:
         Name  Flags
      markPos  final

  public void discard(int);
    descriptor: (I)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=3, args_size=2
        start local 0 // org.bson.json.JsonStreamBuffer this
        start local 1 // int markPos
         0: .line 136
            aload 0 /* this */
            getfield org.bson.json.JsonStreamBuffer.markedPositions:Ljava/util/List;
            iload 1 /* markPos */
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            invokeinterface java.util.List.indexOf:(Ljava/lang/Object;)I
            istore 2 /* idx */
        start local 2 // int idx
         1: .line 137
            iload 2 /* idx */
            iconst_m1
            if_icmpne 3
         2: .line 138
            return
         3: .line 140
      StackMap locals: int
      StackMap stack:
            aload 0 /* this */
            getfield org.bson.json.JsonStreamBuffer.markedPositions:Ljava/util/List;
            iload 2 /* idx */
            aload 0 /* this */
            getfield org.bson.json.JsonStreamBuffer.markedPositions:Ljava/util/List;
            invokeinterface java.util.List.size:()I
            invokeinterface java.util.List.subList:(II)Ljava/util/List;
            invokeinterface java.util.List.clear:()V
         4: .line 141
            return
        end local 2 // int idx
        end local 1 // int markPos
        end local 0 // org.bson.json.JsonStreamBuffer this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0    5     0     this  Lorg/bson/json/JsonStreamBuffer;
            0    5     1  markPos  I
            1    5     2      idx  I
    MethodParameters:
         Name  Flags
      markPos  final

  private void addToBuffer(char);
    descriptor: (C)V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=5, locals=3, args_size=2
        start local 0 // org.bson.json.JsonStreamBuffer this
        start local 1 // char curChar
         0: .line 145
            aload 0 /* this */
            getfield org.bson.json.JsonStreamBuffer.markedPositions:Ljava/util/List;
            invokeinterface java.util.List.isEmpty:()Z
            ifne 7
         1: .line 146
            aload 0 /* this */
            getfield org.bson.json.JsonStreamBuffer.bufferCount:I
            aload 0 /* this */
            getfield org.bson.json.JsonStreamBuffer.buffer:[C
            arraylength
            if_icmpne 5
         2: .line 147
            aload 0 /* this */
            getfield org.bson.json.JsonStreamBuffer.buffer:[C
            arraylength
            iconst_2
            imul
            newarray 5
            astore 2 /* newBuffer */
        start local 2 // char[] newBuffer
         3: .line 148
            aload 0 /* this */
            getfield org.bson.json.JsonStreamBuffer.buffer:[C
            iconst_0
            aload 2 /* newBuffer */
            iconst_0
            aload 0 /* this */
            getfield org.bson.json.JsonStreamBuffer.bufferCount:I
            invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
         4: .line 149
            aload 0 /* this */
            aload 2 /* newBuffer */
            putfield org.bson.json.JsonStreamBuffer.buffer:[C
        end local 2 // char[] newBuffer
         5: .line 151
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.bson.json.JsonStreamBuffer.buffer:[C
            aload 0 /* this */
            getfield org.bson.json.JsonStreamBuffer.bufferCount:I
            iload 1 /* curChar */
            castore
         6: .line 152
            aload 0 /* this */
            dup
            getfield org.bson.json.JsonStreamBuffer.bufferCount:I
            iconst_1
            iadd
            putfield org.bson.json.JsonStreamBuffer.bufferCount:I
         7: .line 154
      StackMap locals:
      StackMap stack:
            return
        end local 1 // char curChar
        end local 0 // org.bson.json.JsonStreamBuffer this
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            0    8     0       this  Lorg/bson/json/JsonStreamBuffer;
            0    8     1    curChar  C
            3    5     2  newBuffer  [C
    MethodParameters:
         Name  Flags
      curChar  final
}
SourceFile: "JsonStreamBuffer.java"