public class org.glassfish.grizzly.utils.BufferInputStream extends java.io.InputStream
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: org.glassfish.grizzly.utils.BufferInputStream
  super_class: java.io.InputStream
{
  private final org.glassfish.grizzly.Buffer buffer;
    descriptor: Lorg/glassfish/grizzly/Buffer;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private final boolean isMovingPosition;
    descriptor: Z
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

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

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

  public void <init>(org.glassfish.grizzly.Buffer);
    descriptor: (Lorg/glassfish/grizzly/Buffer;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // org.glassfish.grizzly.utils.BufferInputStream this
        start local 1 // org.glassfish.grizzly.Buffer buffer
         0: .line 46
            aload 0 /* this */
            invokespecial java.io.InputStream.<init>:()V
         1: .line 47
            aload 0 /* this */
            iconst_1
            putfield org.glassfish.grizzly.utils.BufferInputStream.isMovingPosition:Z
         2: .line 48
            aload 0 /* this */
            aload 1 /* buffer */
            putfield org.glassfish.grizzly.utils.BufferInputStream.buffer:Lorg/glassfish/grizzly/Buffer;
         3: .line 49
            aload 0 /* this */
            aload 1 /* buffer */
            invokeinterface org.glassfish.grizzly.Buffer.position:()I
            putfield org.glassfish.grizzly.utils.BufferInputStream.position:I
         4: .line 50
            aload 0 /* this */
            aload 1 /* buffer */
            invokeinterface org.glassfish.grizzly.Buffer.limit:()I
            putfield org.glassfish.grizzly.utils.BufferInputStream.limit:I
         5: .line 51
            return
        end local 1 // org.glassfish.grizzly.Buffer buffer
        end local 0 // org.glassfish.grizzly.utils.BufferInputStream this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    6     0    this  Lorg/glassfish/grizzly/utils/BufferInputStream;
            0    6     1  buffer  Lorg/glassfish/grizzly/Buffer;
    MethodParameters:
        Name  Flags
      buffer  final

  public void <init>(org.glassfish.grizzly.Buffer, int, int);
    descriptor: (Lorg/glassfish/grizzly/Buffer;II)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=4, args_size=4
        start local 0 // org.glassfish.grizzly.utils.BufferInputStream this
        start local 1 // org.glassfish.grizzly.Buffer buffer
        start local 2 // int position
        start local 3 // int limit
         0: .line 60
            aload 0 /* this */
            invokespecial java.io.InputStream.<init>:()V
         1: .line 61
            aload 0 /* this */
            iconst_0
            putfield org.glassfish.grizzly.utils.BufferInputStream.isMovingPosition:Z
         2: .line 62
            aload 0 /* this */
            aload 1 /* buffer */
            putfield org.glassfish.grizzly.utils.BufferInputStream.buffer:Lorg/glassfish/grizzly/Buffer;
         3: .line 63
            aload 0 /* this */
            iload 2 /* position */
            putfield org.glassfish.grizzly.utils.BufferInputStream.position:I
         4: .line 64
            aload 0 /* this */
            iload 3 /* limit */
            putfield org.glassfish.grizzly.utils.BufferInputStream.limit:I
         5: .line 65
            return
        end local 3 // int limit
        end local 2 // int position
        end local 1 // org.glassfish.grizzly.Buffer buffer
        end local 0 // org.glassfish.grizzly.utils.BufferInputStream this
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0    6     0      this  Lorg/glassfish/grizzly/utils/BufferInputStream;
            0    6     1    buffer  Lorg/glassfish/grizzly/Buffer;
            0    6     2  position  I
            0    6     3     limit  I
    MethodParameters:
          Name  Flags
      buffer    final
      position  final
      limit     final

  public int read();
    descriptor: ()I
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=5, locals=2, args_size=1
        start local 0 // org.glassfish.grizzly.utils.BufferInputStream this
         0: .line 72
            aload 0 /* this */
            getfield org.glassfish.grizzly.utils.BufferInputStream.position:I
            aload 0 /* this */
            getfield org.glassfish.grizzly.utils.BufferInputStream.limit:I
            if_icmplt 2
         1: .line 73
            iconst_m1
            ireturn
         2: .line 76
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.glassfish.grizzly.utils.BufferInputStream.buffer:Lorg/glassfish/grizzly/Buffer;
            aload 0 /* this */
            dup
            getfield org.glassfish.grizzly.utils.BufferInputStream.position:I
            dup_x1
            iconst_1
            iadd
            putfield org.glassfish.grizzly.utils.BufferInputStream.position:I
            invokeinterface org.glassfish.grizzly.Buffer.get:(I)B
            sipush 255
            iand
            istore 1 /* result */
        start local 1 // int result
         3: .line 78
            aload 0 /* this */
            getfield org.glassfish.grizzly.utils.BufferInputStream.isMovingPosition:Z
            ifeq 5
         4: .line 79
            aload 0 /* this */
            getfield org.glassfish.grizzly.utils.BufferInputStream.buffer:Lorg/glassfish/grizzly/Buffer;
            aload 0 /* this */
            getfield org.glassfish.grizzly.utils.BufferInputStream.position:I
            invokeinterface org.glassfish.grizzly.Buffer.position:(I)Lorg/glassfish/grizzly/Buffer;
            pop
         5: .line 82
      StackMap locals: int
      StackMap stack:
            iload 1 /* result */
            ireturn
        end local 1 // int result
        end local 0 // org.glassfish.grizzly.utils.BufferInputStream this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    6     0    this  Lorg/glassfish/grizzly/utils/BufferInputStream;
            3    6     1  result  I
    Exceptions:
      throws java.io.IOException

  public int read(byte[], int, int);
    descriptor: ([BII)I
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=8, args_size=4
        start local 0 // org.glassfish.grizzly.utils.BufferInputStream this
        start local 1 // byte[] b
        start local 2 // int off
        start local 3 // int len
         0: .line 90
            aload 0 /* this */
            getfield org.glassfish.grizzly.utils.BufferInputStream.position:I
            aload 0 /* this */
            getfield org.glassfish.grizzly.utils.BufferInputStream.limit:I
            if_icmplt 2
         1: .line 91
            iconst_m1
            ireturn
         2: .line 94
      StackMap locals:
      StackMap stack:
            iload 3 /* len */
            aload 0 /* this */
            invokevirtual org.glassfish.grizzly.utils.BufferInputStream.available:()I
            invokestatic java.lang.Math.min:(II)I
            istore 4 /* length */
        start local 4 // int length
         3: .line 96
            aload 0 /* this */
            getfield org.glassfish.grizzly.utils.BufferInputStream.buffer:Lorg/glassfish/grizzly/Buffer;
            invokeinterface org.glassfish.grizzly.Buffer.position:()I
            istore 5 /* oldPos */
        start local 5 // int oldPos
         4: .line 97
            aload 0 /* this */
            getfield org.glassfish.grizzly.utils.BufferInputStream.buffer:Lorg/glassfish/grizzly/Buffer;
            invokeinterface org.glassfish.grizzly.Buffer.limit:()I
            istore 6 /* oldLim */
        start local 6 // int oldLim
         5: .line 99
            aload 0 /* this */
            getfield org.glassfish.grizzly.utils.BufferInputStream.isMovingPosition:Z
            ifne 7
         6: .line 100
            aload 0 /* this */
            getfield org.glassfish.grizzly.utils.BufferInputStream.buffer:Lorg/glassfish/grizzly/Buffer;
            aload 0 /* this */
            getfield org.glassfish.grizzly.utils.BufferInputStream.position:I
            aload 0 /* this */
            getfield org.glassfish.grizzly.utils.BufferInputStream.limit:I
            invokestatic org.glassfish.grizzly.memory.Buffers.setPositionLimit:(Lorg/glassfish/grizzly/Buffer;II)V
         7: .line 104
      StackMap locals: int int int
      StackMap stack:
            aload 0 /* this */
            getfield org.glassfish.grizzly.utils.BufferInputStream.buffer:Lorg/glassfish/grizzly/Buffer;
            aload 1 /* b */
            iload 2 /* off */
            iload 4 /* length */
            invokeinterface org.glassfish.grizzly.Buffer.get:([BII)Lorg/glassfish/grizzly/Buffer;
            pop
         8: .line 105
            goto 13
      StackMap locals:
      StackMap stack: java.lang.Throwable
         9: astore 7
        10: .line 106
            aload 0 /* this */
            getfield org.glassfish.grizzly.utils.BufferInputStream.isMovingPosition:Z
            ifne 12
        11: .line 107
            aload 0 /* this */
            getfield org.glassfish.grizzly.utils.BufferInputStream.buffer:Lorg/glassfish/grizzly/Buffer;
            iload 5 /* oldPos */
            iload 6 /* oldLim */
            invokestatic org.glassfish.grizzly.memory.Buffers.setPositionLimit:(Lorg/glassfish/grizzly/Buffer;II)V
        12: .line 109
      StackMap locals: java.lang.Throwable
      StackMap stack:
            aload 7
            athrow
        13: .line 106
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.glassfish.grizzly.utils.BufferInputStream.isMovingPosition:Z
            ifne 15
        14: .line 107
            aload 0 /* this */
            getfield org.glassfish.grizzly.utils.BufferInputStream.buffer:Lorg/glassfish/grizzly/Buffer;
            iload 5 /* oldPos */
            iload 6 /* oldLim */
            invokestatic org.glassfish.grizzly.memory.Buffers.setPositionLimit:(Lorg/glassfish/grizzly/Buffer;II)V
        15: .line 111
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            dup
            getfield org.glassfish.grizzly.utils.BufferInputStream.position:I
            iload 4 /* length */
            iadd
            putfield org.glassfish.grizzly.utils.BufferInputStream.position:I
        16: .line 113
            iload 4 /* length */
            ireturn
        end local 6 // int oldLim
        end local 5 // int oldPos
        end local 4 // int length
        end local 3 // int len
        end local 2 // int off
        end local 1 // byte[] b
        end local 0 // org.glassfish.grizzly.utils.BufferInputStream this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0   17     0    this  Lorg/glassfish/grizzly/utils/BufferInputStream;
            0   17     1       b  [B
            0   17     2     off  I
            0   17     3     len  I
            3   17     4  length  I
            4   17     5  oldPos  I
            5   17     6  oldLim  I
      Exception table:
        from    to  target  type
           7     9       9  any
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      b     final
      off   final
      len   final

  public int available();
    descriptor: ()I
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // org.glassfish.grizzly.utils.BufferInputStream this
         0: .line 121
            aload 0 /* this */
            getfield org.glassfish.grizzly.utils.BufferInputStream.limit:I
            aload 0 /* this */
            getfield org.glassfish.grizzly.utils.BufferInputStream.position:I
            isub
            ireturn
        end local 0 // org.glassfish.grizzly.utils.BufferInputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/glassfish/grizzly/utils/BufferInputStream;
    Exceptions:
      throws java.io.IOException

  public long skip(long);
    descriptor: (J)J
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=4, args_size=2
        start local 0 // org.glassfish.grizzly.utils.BufferInputStream this
        start local 1 // long n
         0: .line 129
            lload 1 /* n */
            aload 0 /* this */
            invokevirtual org.glassfish.grizzly.utils.BufferInputStream.available:()I
            i2l
            invokestatic java.lang.Math.min:(JJ)J
            l2i
            istore 3 /* skipped */
        start local 3 // int skipped
         1: .line 131
            aload 0 /* this */
            dup
            getfield org.glassfish.grizzly.utils.BufferInputStream.position:I
            iload 3 /* skipped */
            iadd
            putfield org.glassfish.grizzly.utils.BufferInputStream.position:I
         2: .line 132
            aload 0 /* this */
            getfield org.glassfish.grizzly.utils.BufferInputStream.isMovingPosition:Z
            ifeq 4
         3: .line 133
            aload 0 /* this */
            getfield org.glassfish.grizzly.utils.BufferInputStream.buffer:Lorg/glassfish/grizzly/Buffer;
            aload 0 /* this */
            getfield org.glassfish.grizzly.utils.BufferInputStream.position:I
            invokeinterface org.glassfish.grizzly.Buffer.position:(I)Lorg/glassfish/grizzly/Buffer;
            pop
         4: .line 136
      StackMap locals: int
      StackMap stack:
            iload 3 /* skipped */
            i2l
            lreturn
        end local 3 // int skipped
        end local 1 // long n
        end local 0 // org.glassfish.grizzly.utils.BufferInputStream this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0    5     0     this  Lorg/glassfish/grizzly/utils/BufferInputStream;
            0    5     1        n  J
            1    5     3  skipped  I
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      n     final
}
SourceFile: "BufferInputStream.java"