public class org.apache.http.impl.io.ContentLengthInputStream extends java.io.InputStream
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: org.apache.http.impl.io.ContentLengthInputStream
  super_class: java.io.InputStream
{
  private static final int BUFFER_SIZE;
    descriptor: I
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
    ConstantValue: 2048

  private final long contentLength;
    descriptor: J
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private long pos;
    descriptor: J
    flags: (0x0002) ACC_PRIVATE

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

  private org.apache.http.io.SessionInputBuffer in;
    descriptor: Lorg/apache/http/io/SessionInputBuffer;
    flags: (0x0002) ACC_PRIVATE

  public void <init>(org.apache.http.io.SessionInputBuffer, long);
    descriptor: (Lorg/apache/http/io/SessionInputBuffer;J)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=4, args_size=3
        start local 0 // org.apache.http.impl.io.ContentLengthInputStream this
        start local 1 // org.apache.http.io.SessionInputBuffer in
        start local 2 // long contentLength
         0: .line 83
            aload 0 /* this */
            invokespecial java.io.InputStream.<init>:()V
         1: .line 64
            aload 0 /* this */
            lconst_0
            putfield org.apache.http.impl.io.ContentLengthInputStream.pos:J
         2: .line 67
            aload 0 /* this */
            iconst_0
            putfield org.apache.http.impl.io.ContentLengthInputStream.closed:Z
         3: .line 72
            aload 0 /* this */
            aconst_null
            putfield org.apache.http.impl.io.ContentLengthInputStream.in:Lorg/apache/http/io/SessionInputBuffer;
         4: .line 84
            aload 0 /* this */
            aload 1 /* in */
            ldc "Session input buffer"
            invokestatic org.apache.http.util.Args.notNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
            checkcast org.apache.http.io.SessionInputBuffer
            putfield org.apache.http.impl.io.ContentLengthInputStream.in:Lorg/apache/http/io/SessionInputBuffer;
         5: .line 85
            aload 0 /* this */
            lload 2 /* contentLength */
            ldc "Content length"
            invokestatic org.apache.http.util.Args.notNegative:(JLjava/lang/String;)J
            putfield org.apache.http.impl.io.ContentLengthInputStream.contentLength:J
         6: .line 86
            return
        end local 2 // long contentLength
        end local 1 // org.apache.http.io.SessionInputBuffer in
        end local 0 // org.apache.http.impl.io.ContentLengthInputStream this
      LocalVariableTable:
        Start  End  Slot           Name  Signature
            0    7     0           this  Lorg/apache/http/impl/io/ContentLengthInputStream;
            0    7     1             in  Lorg/apache/http/io/SessionInputBuffer;
            0    7     2  contentLength  J
    MethodParameters:
               Name  Flags
      in             final
      contentLength  final

  public void close();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=3, args_size=1
        start local 0 // org.apache.http.impl.io.ContentLengthInputStream this
         0: .line 97
            aload 0 /* this */
            getfield org.apache.http.impl.io.ContentLengthInputStream.closed:Z
            ifne 9
         1: .line 99
            aload 0 /* this */
            getfield org.apache.http.impl.io.ContentLengthInputStream.pos:J
            aload 0 /* this */
            getfield org.apache.http.impl.io.ContentLengthInputStream.contentLength:J
            lcmp
            ifge 8
         2: .line 100
            sipush 2048
            newarray 8
            astore 1 /* buffer */
        start local 1 // byte[] buffer
         3: .line 101
      StackMap locals: byte[]
      StackMap stack:
            aload 0 /* this */
            aload 1 /* buffer */
            invokevirtual org.apache.http.impl.io.ContentLengthInputStream.read:([B)I
            ifge 3
        end local 1 // byte[] buffer
         4: .line 105
            goto 8
      StackMap locals: org.apache.http.impl.io.ContentLengthInputStream
      StackMap stack: java.lang.Throwable
         5: astore 2
         6: .line 108
            aload 0 /* this */
            iconst_1
            putfield org.apache.http.impl.io.ContentLengthInputStream.closed:Z
         7: .line 109
            aload 2
            athrow
         8: .line 108
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            iconst_1
            putfield org.apache.http.impl.io.ContentLengthInputStream.closed:Z
         9: .line 111
      StackMap locals:
      StackMap stack:
            return
        end local 0 // org.apache.http.impl.io.ContentLengthInputStream this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0   10     0    this  Lorg/apache/http/impl/io/ContentLengthInputStream;
            3    4     1  buffer  [B
      Exception table:
        from    to  target  type
           1     5       5  any
    Exceptions:
      throws java.io.IOException

  public int available();
    descriptor: ()I
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=5, locals=2, args_size=1
        start local 0 // org.apache.http.impl.io.ContentLengthInputStream this
         0: .line 115
            aload 0 /* this */
            getfield org.apache.http.impl.io.ContentLengthInputStream.in:Lorg/apache/http/io/SessionInputBuffer;
            instanceof org.apache.http.io.BufferInfo
            ifeq 3
         1: .line 116
            aload 0 /* this */
            getfield org.apache.http.impl.io.ContentLengthInputStream.in:Lorg/apache/http/io/SessionInputBuffer;
            checkcast org.apache.http.io.BufferInfo
            invokeinterface org.apache.http.io.BufferInfo.length:()I
            istore 1 /* len */
        start local 1 // int len
         2: .line 117
            iload 1 /* len */
            aload 0 /* this */
            getfield org.apache.http.impl.io.ContentLengthInputStream.contentLength:J
            aload 0 /* this */
            getfield org.apache.http.impl.io.ContentLengthInputStream.pos:J
            lsub
            l2i
            invokestatic java.lang.Math.min:(II)I
            ireturn
        end local 1 // int len
         3: .line 119
      StackMap locals:
      StackMap stack:
            iconst_0
            ireturn
        end local 0 // org.apache.http.impl.io.ContentLengthInputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    4     0  this  Lorg/apache/http/impl/io/ContentLengthInputStream;
            2    3     1   len  I
    Exceptions:
      throws java.io.IOException

  public int read();
    descriptor: ()I
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=8, locals=2, args_size=1
        start local 0 // org.apache.http.impl.io.ContentLengthInputStream this
         0: .line 130
            aload 0 /* this */
            getfield org.apache.http.impl.io.ContentLengthInputStream.closed:Z
            ifeq 2
         1: .line 131
            new java.io.IOException
            dup
            ldc "Attempted read from closed stream."
            invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
            athrow
         2: .line 134
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.apache.http.impl.io.ContentLengthInputStream.pos:J
            aload 0 /* this */
            getfield org.apache.http.impl.io.ContentLengthInputStream.contentLength:J
            lcmp
            iflt 4
         3: .line 135
            iconst_m1
            ireturn
         4: .line 137
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.apache.http.impl.io.ContentLengthInputStream.in:Lorg/apache/http/io/SessionInputBuffer;
            invokeinterface org.apache.http.io.SessionInputBuffer.read:()I
            istore 1 /* b */
        start local 1 // int b
         5: .line 138
            iload 1 /* b */
            iconst_m1
            if_icmpne 11
         6: .line 139
            aload 0 /* this */
            getfield org.apache.http.impl.io.ContentLengthInputStream.pos:J
            aload 0 /* this */
            getfield org.apache.http.impl.io.ContentLengthInputStream.contentLength:J
            lcmp
            ifge 12
         7: .line 140
            new org.apache.http.ConnectionClosedException
            dup
         8: .line 141
            ldc "Premature end of Content-Length delimited message body (expected: %,d; received: %,d)"
            iconst_2
            anewarray java.lang.Object
            dup
            iconst_0
         9: .line 142
            aload 0 /* this */
            getfield org.apache.http.impl.io.ContentLengthInputStream.contentLength:J
            invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
            aastore
            dup
            iconst_1
            aload 0 /* this */
            getfield org.apache.http.impl.io.ContentLengthInputStream.pos:J
            invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
        10: .line 140
            aastore
            invokespecial org.apache.http.ConnectionClosedException.<init>:(Ljava/lang/String;[Ljava/lang/Object;)V
            athrow
        11: .line 145
      StackMap locals: int
      StackMap stack:
            aload 0 /* this */
            dup
            getfield org.apache.http.impl.io.ContentLengthInputStream.pos:J
            lconst_1
            ladd
            putfield org.apache.http.impl.io.ContentLengthInputStream.pos:J
        12: .line 147
      StackMap locals:
      StackMap stack:
            iload 1 /* b */
            ireturn
        end local 1 // int b
        end local 0 // org.apache.http.impl.io.ContentLengthInputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0   13     0  this  Lorg/apache/http/impl/io/ContentLengthInputStream;
            5   13     1     b  I
    Exceptions:
      throws java.io.IOException

  public int read(byte[], int, int);
    descriptor: ([BII)I
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=8, locals=6, args_size=4
        start local 0 // org.apache.http.impl.io.ContentLengthInputStream this
        start local 1 // byte[] b
        start local 2 // int off
        start local 3 // int len
         0: .line 164
            aload 0 /* this */
            getfield org.apache.http.impl.io.ContentLengthInputStream.closed:Z
            ifeq 2
         1: .line 165
            new java.io.IOException
            dup
            ldc "Attempted read from closed stream."
            invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
            athrow
         2: .line 168
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.apache.http.impl.io.ContentLengthInputStream.pos:J
            aload 0 /* this */
            getfield org.apache.http.impl.io.ContentLengthInputStream.contentLength:J
            lcmp
            iflt 4
         3: .line 169
            iconst_m1
            ireturn
         4: .line 172
      StackMap locals:
      StackMap stack:
            iload 3 /* len */
            istore 4 /* chunk */
        start local 4 // int chunk
         5: .line 173
            aload 0 /* this */
            getfield org.apache.http.impl.io.ContentLengthInputStream.pos:J
            iload 3 /* len */
            i2l
            ladd
            aload 0 /* this */
            getfield org.apache.http.impl.io.ContentLengthInputStream.contentLength:J
            lcmp
            ifle 7
         6: .line 174
            aload 0 /* this */
            getfield org.apache.http.impl.io.ContentLengthInputStream.contentLength:J
            aload 0 /* this */
            getfield org.apache.http.impl.io.ContentLengthInputStream.pos:J
            lsub
            l2i
            istore 4 /* chunk */
         7: .line 176
      StackMap locals: int
      StackMap stack:
            aload 0 /* this */
            getfield org.apache.http.impl.io.ContentLengthInputStream.in:Lorg/apache/http/io/SessionInputBuffer;
            aload 1 /* b */
            iload 2 /* off */
            iload 4 /* chunk */
            invokeinterface org.apache.http.io.SessionInputBuffer.read:([BII)I
            istore 5 /* readLen */
        start local 5 // int readLen
         8: .line 177
            iload 5 /* readLen */
            iconst_m1
            if_icmpne 13
            aload 0 /* this */
            getfield org.apache.http.impl.io.ContentLengthInputStream.pos:J
            aload 0 /* this */
            getfield org.apache.http.impl.io.ContentLengthInputStream.contentLength:J
            lcmp
            ifge 13
         9: .line 178
            new org.apache.http.ConnectionClosedException
            dup
        10: .line 179
            ldc "Premature end of Content-Length delimited message body (expected: %,d; received: %,d)"
            iconst_2
            anewarray java.lang.Object
            dup
            iconst_0
        11: .line 180
            aload 0 /* this */
            getfield org.apache.http.impl.io.ContentLengthInputStream.contentLength:J
            invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
            aastore
            dup
            iconst_1
            aload 0 /* this */
            getfield org.apache.http.impl.io.ContentLengthInputStream.pos:J
            invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
        12: .line 178
            aastore
            invokespecial org.apache.http.ConnectionClosedException.<init>:(Ljava/lang/String;[Ljava/lang/Object;)V
            athrow
        13: .line 182
      StackMap locals: int
      StackMap stack:
            iload 5 /* readLen */
            ifle 15
        14: .line 183
            aload 0 /* this */
            dup
            getfield org.apache.http.impl.io.ContentLengthInputStream.pos:J
            iload 5 /* readLen */
            i2l
            ladd
            putfield org.apache.http.impl.io.ContentLengthInputStream.pos:J
        15: .line 185
      StackMap locals:
      StackMap stack:
            iload 5 /* readLen */
            ireturn
        end local 5 // int readLen
        end local 4 // int chunk
        end local 3 // int len
        end local 2 // int off
        end local 1 // byte[] b
        end local 0 // org.apache.http.impl.io.ContentLengthInputStream this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0   16     0     this  Lorg/apache/http/impl/io/ContentLengthInputStream;
            0   16     1        b  [B
            0   16     2      off  I
            0   16     3      len  I
            5   16     4    chunk  I
            8   16     5  readLen  I
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      b     final
      off   final
      len   final

  public int read(byte[]);
    descriptor: ([B)I
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=2, args_size=2
        start local 0 // org.apache.http.impl.io.ContentLengthInputStream this
        start local 1 // byte[] b
         0: .line 198
            aload 0 /* this */
            aload 1 /* b */
            iconst_0
            aload 1 /* b */
            arraylength
            invokevirtual org.apache.http.impl.io.ContentLengthInputStream.read:([BII)I
            ireturn
        end local 1 // byte[] b
        end local 0 // org.apache.http.impl.io.ContentLengthInputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/apache/http/impl/io/ContentLengthInputStream;
            0    1     1     b  [B
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      b     final

  public long skip(long);
    descriptor: (J)J
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=7, locals=9, args_size=2
        start local 0 // org.apache.http.impl.io.ContentLengthInputStream this
        start local 1 // long n
         0: .line 211
            lload 1 /* n */
            lconst_0
            lcmp
            ifgt 2
         1: .line 212
            lconst_0
            lreturn
         2: .line 214
      StackMap locals:
      StackMap stack:
            sipush 2048
            newarray 8
            astore 3 /* buffer */
        start local 3 // byte[] buffer
         3: .line 217
            lload 1 /* n */
            aload 0 /* this */
            getfield org.apache.http.impl.io.ContentLengthInputStream.contentLength:J
            aload 0 /* this */
            getfield org.apache.http.impl.io.ContentLengthInputStream.pos:J
            lsub
            invokestatic java.lang.Math.min:(JJ)J
            lstore 4 /* remaining */
        start local 4 // long remaining
         4: .line 219
            lconst_0
            lstore 6 /* count */
        start local 6 // long count
         5: .line 220
            goto 11
         6: .line 221
      StackMap locals: byte[] long long
      StackMap stack:
            aload 0 /* this */
            aload 3 /* buffer */
            iconst_0
            ldc 2048
            lload 4 /* remaining */
            invokestatic java.lang.Math.min:(JJ)J
            l2i
            invokevirtual org.apache.http.impl.io.ContentLengthInputStream.read:([BII)I
            istore 8 /* readLen */
        start local 8 // int readLen
         7: .line 222
            iload 8 /* readLen */
            iconst_m1
            if_icmpne 9
         8: .line 223
            goto 12
         9: .line 225
      StackMap locals: int
      StackMap stack:
            lload 6 /* count */
            iload 8 /* readLen */
            i2l
            ladd
            lstore 6 /* count */
        10: .line 226
            lload 4 /* remaining */
            iload 8 /* readLen */
            i2l
            lsub
            lstore 4 /* remaining */
        end local 8 // int readLen
        11: .line 220
      StackMap locals:
      StackMap stack:
            lload 4 /* remaining */
            lconst_0
            lcmp
            ifgt 6
        12: .line 228
      StackMap locals:
      StackMap stack:
            lload 6 /* count */
            lreturn
        end local 6 // long count
        end local 4 // long remaining
        end local 3 // byte[] buffer
        end local 1 // long n
        end local 0 // org.apache.http.impl.io.ContentLengthInputStream this
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            0   13     0       this  Lorg/apache/http/impl/io/ContentLengthInputStream;
            0   13     1          n  J
            3   13     3     buffer  [B
            4   13     4  remaining  J
            5   13     6      count  J
            7   11     8    readLen  I
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      n     final
}
SourceFile: "ContentLengthInputStream.java"