class org.bouncycastle.asn1.DefiniteLengthInputStream extends org.bouncycastle.asn1.LimitedInputStream
  minor version: 0
  major version: 59
  flags: flags: (0x0020) ACC_SUPER
  this_class: org.bouncycastle.asn1.DefiniteLengthInputStream
  super_class: org.bouncycastle.asn1.LimitedInputStream
{
  private static final byte[] EMPTY_BYTES;
    descriptor: [B
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL

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

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

  static void <clinit>();
    descriptor: ()V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=1, locals=0, args_size=0
         0: .line 15
            iconst_0
            newarray 8
            putstatic org.bouncycastle.asn1.DefiniteLengthInputStream.EMPTY_BYTES:[B
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  void <init>(java.io.InputStream, int);
    descriptor: (Ljava/io/InputStream;I)V
    flags: (0x0000) 
    Code:
      stack=3, locals=3, args_size=3
        start local 0 // org.bouncycastle.asn1.DefiniteLengthInputStream this
        start local 1 // java.io.InputStream in
        start local 2 // int length
         0: .line 24
            aload 0 /* this */
            aload 1 /* in */
            iload 2 /* length */
            invokespecial org.bouncycastle.asn1.LimitedInputStream.<init>:(Ljava/io/InputStream;I)V
         1: .line 26
            iload 2 /* length */
            ifge 3
         2: .line 28
            new java.lang.IllegalArgumentException
            dup
            ldc "negative lengths not allowed"
            invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
            athrow
         3: .line 31
      StackMap locals: org.bouncycastle.asn1.DefiniteLengthInputStream java.io.InputStream int
      StackMap stack:
            aload 0 /* this */
            iload 2 /* length */
            putfield org.bouncycastle.asn1.DefiniteLengthInputStream._originalLength:I
         4: .line 32
            aload 0 /* this */
            iload 2 /* length */
            putfield org.bouncycastle.asn1.DefiniteLengthInputStream._remaining:I
         5: .line 34
            iload 2 /* length */
            ifne 7
         6: .line 36
            aload 0 /* this */
            iconst_1
            invokevirtual org.bouncycastle.asn1.DefiniteLengthInputStream.setParentEofDetect:(Z)V
         7: .line 38
      StackMap locals:
      StackMap stack:
            return
        end local 2 // int length
        end local 1 // java.io.InputStream in
        end local 0 // org.bouncycastle.asn1.DefiniteLengthInputStream this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    8     0    this  Lorg/bouncycastle/asn1/DefiniteLengthInputStream;
            0    8     1      in  Ljava/io/InputStream;
            0    8     2  length  I
    MethodParameters:
        Name  Flags
      in      
      length  

  int getRemaining();
    descriptor: ()I
    flags: (0x0000) 
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // org.bouncycastle.asn1.DefiniteLengthInputStream this
         0: .line 42
            aload 0 /* this */
            getfield org.bouncycastle.asn1.DefiniteLengthInputStream._remaining:I
            ireturn
        end local 0 // org.bouncycastle.asn1.DefiniteLengthInputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/bouncycastle/asn1/DefiniteLengthInputStream;

  public int read();
    descriptor: ()I
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=5, locals=2, args_size=1
        start local 0 // org.bouncycastle.asn1.DefiniteLengthInputStream this
         0: .line 48
            aload 0 /* this */
            getfield org.bouncycastle.asn1.DefiniteLengthInputStream._remaining:I
            ifne 2
         1: .line 50
            iconst_m1
            ireturn
         2: .line 53
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.bouncycastle.asn1.DefiniteLengthInputStream._in:Ljava/io/InputStream;
            invokevirtual java.io.InputStream.read:()I
            istore 1 /* b */
        start local 1 // int b
         3: .line 55
            iload 1 /* b */
            ifge 5
         4: .line 57
            new java.io.EOFException
            dup
            new java.lang.StringBuilder
            dup
            ldc "DEF length "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 0 /* this */
            getfield org.bouncycastle.asn1.DefiniteLengthInputStream._originalLength:I
            invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
            ldc " object truncated by "
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            aload 0 /* this */
            getfield org.bouncycastle.asn1.DefiniteLengthInputStream._remaining:I
            invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokespecial java.io.EOFException.<init>:(Ljava/lang/String;)V
            athrow
         5: .line 60
      StackMap locals: int
      StackMap stack:
            aload 0 /* this */
            dup
            getfield org.bouncycastle.asn1.DefiniteLengthInputStream._remaining:I
            iconst_1
            isub
            dup_x1
            putfield org.bouncycastle.asn1.DefiniteLengthInputStream._remaining:I
            ifne 7
         6: .line 62
            aload 0 /* this */
            iconst_1
            invokevirtual org.bouncycastle.asn1.DefiniteLengthInputStream.setParentEofDetect:(Z)V
         7: .line 65
      StackMap locals:
      StackMap stack:
            iload 1 /* b */
            ireturn
        end local 1 // int b
        end local 0 // org.bouncycastle.asn1.DefiniteLengthInputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    8     0  this  Lorg/bouncycastle/asn1/DefiniteLengthInputStream;
            3    8     1     b  I
    Exceptions:
      throws java.io.IOException

  public int read(byte[], int, int);
    descriptor: ([BII)I
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=5, locals=6, args_size=4
        start local 0 // org.bouncycastle.asn1.DefiniteLengthInputStream this
        start local 1 // byte[] buf
        start local 2 // int off
        start local 3 // int len
         0: .line 71
            aload 0 /* this */
            getfield org.bouncycastle.asn1.DefiniteLengthInputStream._remaining:I
            ifne 2
         1: .line 73
            iconst_m1
            ireturn
         2: .line 76
      StackMap locals:
      StackMap stack:
            iload 3 /* len */
            aload 0 /* this */
            getfield org.bouncycastle.asn1.DefiniteLengthInputStream._remaining:I
            invokestatic java.lang.Math.min:(II)I
            istore 4 /* toRead */
        start local 4 // int toRead
         3: .line 77
            aload 0 /* this */
            getfield org.bouncycastle.asn1.DefiniteLengthInputStream._in:Ljava/io/InputStream;
            aload 1 /* buf */
            iload 2 /* off */
            iload 4 /* toRead */
            invokevirtual java.io.InputStream.read:([BII)I
            istore 5 /* numRead */
        start local 5 // int numRead
         4: .line 79
            iload 5 /* numRead */
            ifge 6
         5: .line 81
            new java.io.EOFException
            dup
            new java.lang.StringBuilder
            dup
            ldc "DEF length "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 0 /* this */
            getfield org.bouncycastle.asn1.DefiniteLengthInputStream._originalLength:I
            invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
            ldc " object truncated by "
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            aload 0 /* this */
            getfield org.bouncycastle.asn1.DefiniteLengthInputStream._remaining:I
            invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokespecial java.io.EOFException.<init>:(Ljava/lang/String;)V
            athrow
         6: .line 84
      StackMap locals: int int
      StackMap stack:
            aload 0 /* this */
            dup
            getfield org.bouncycastle.asn1.DefiniteLengthInputStream._remaining:I
            iload 5 /* numRead */
            isub
            dup_x1
            putfield org.bouncycastle.asn1.DefiniteLengthInputStream._remaining:I
            ifne 8
         7: .line 86
            aload 0 /* this */
            iconst_1
            invokevirtual org.bouncycastle.asn1.DefiniteLengthInputStream.setParentEofDetect:(Z)V
         8: .line 89
      StackMap locals:
      StackMap stack:
            iload 5 /* numRead */
            ireturn
        end local 5 // int numRead
        end local 4 // int toRead
        end local 3 // int len
        end local 2 // int off
        end local 1 // byte[] buf
        end local 0 // org.bouncycastle.asn1.DefiniteLengthInputStream this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0    9     0     this  Lorg/bouncycastle/asn1/DefiniteLengthInputStream;
            0    9     1      buf  [B
            0    9     2      off  I
            0    9     3      len  I
            3    9     4   toRead  I
            4    9     5  numRead  I
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      buf   
      off   
      len   

  byte[] toByteArray();
    descriptor: ()[B
    flags: (0x0000) 
    Code:
      stack=5, locals=2, args_size=1
        start local 0 // org.bouncycastle.asn1.DefiniteLengthInputStream this
         0: .line 95
            aload 0 /* this */
            getfield org.bouncycastle.asn1.DefiniteLengthInputStream._remaining:I
            ifne 2
         1: .line 97
            getstatic org.bouncycastle.asn1.DefiniteLengthInputStream.EMPTY_BYTES:[B
            areturn
         2: .line 100
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.bouncycastle.asn1.DefiniteLengthInputStream._remaining:I
            newarray 8
            astore 1 /* bytes */
        start local 1 // byte[] bytes
         3: .line 101
            aload 0 /* this */
            dup
            getfield org.bouncycastle.asn1.DefiniteLengthInputStream._remaining:I
            aload 0 /* this */
            getfield org.bouncycastle.asn1.DefiniteLengthInputStream._in:Ljava/io/InputStream;
            aload 1 /* bytes */
            invokestatic org.bouncycastle.util.io.Streams.readFully:(Ljava/io/InputStream;[B)I
            isub
            dup_x1
            putfield org.bouncycastle.asn1.DefiniteLengthInputStream._remaining:I
            ifeq 5
         4: .line 103
            new java.io.EOFException
            dup
            new java.lang.StringBuilder
            dup
            ldc "DEF length "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 0 /* this */
            getfield org.bouncycastle.asn1.DefiniteLengthInputStream._originalLength:I
            invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
            ldc " object truncated by "
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            aload 0 /* this */
            getfield org.bouncycastle.asn1.DefiniteLengthInputStream._remaining:I
            invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokespecial java.io.EOFException.<init>:(Ljava/lang/String;)V
            athrow
         5: .line 105
      StackMap locals: byte[]
      StackMap stack:
            aload 0 /* this */
            iconst_1
            invokevirtual org.bouncycastle.asn1.DefiniteLengthInputStream.setParentEofDetect:(Z)V
         6: .line 106
            aload 1 /* bytes */
            areturn
        end local 1 // byte[] bytes
        end local 0 // org.bouncycastle.asn1.DefiniteLengthInputStream this
      LocalVariableTable:
        Start  End  Slot   Name  Signature
            0    7     0   this  Lorg/bouncycastle/asn1/DefiniteLengthInputStream;
            3    7     1  bytes  [B
    Exceptions:
      throws java.io.IOException
}
SourceFile: "DefiniteLengthInputStream.java"