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: 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 start local 1 start local 2 0: aload 0
aload 1
iload 2
invokespecial org.bouncycastle.asn1.LimitedInputStream.<init>:(Ljava/io/InputStream;I)V
1: iload 2
ifge 3
2: new java.lang.IllegalArgumentException
dup
ldc "negative lengths not allowed"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: org.bouncycastle.asn1.DefiniteLengthInputStream java.io.InputStream int
StackMap stack:
aload 0
iload 2
putfield org.bouncycastle.asn1.DefiniteLengthInputStream._originalLength:I
4: aload 0
iload 2
putfield org.bouncycastle.asn1.DefiniteLengthInputStream._remaining:I
5: iload 2
ifne 7
6: aload 0
iconst_1
invokevirtual org.bouncycastle.asn1.DefiniteLengthInputStream.setParentEofDetect:(Z)V
7: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 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 0: aload 0
getfield org.bouncycastle.asn1.DefiniteLengthInputStream._remaining:I
ireturn
end local 0 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 0: aload 0
getfield org.bouncycastle.asn1.DefiniteLengthInputStream._remaining:I
ifne 2
1: iconst_m1
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.bouncycastle.asn1.DefiniteLengthInputStream._in:Ljava/io/InputStream;
invokevirtual java.io.InputStream.read:()I
istore 1
start local 1 3: iload 1
ifge 5
4: new java.io.EOFException
dup
new java.lang.StringBuilder
dup
ldc "DEF length "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
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
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: StackMap locals: int
StackMap stack:
aload 0
dup
getfield org.bouncycastle.asn1.DefiniteLengthInputStream._remaining:I
iconst_1
isub
dup_x1
putfield org.bouncycastle.asn1.DefiniteLengthInputStream._remaining:I
ifne 7
6: aload 0
iconst_1
invokevirtual org.bouncycastle.asn1.DefiniteLengthInputStream.setParentEofDetect:(Z)V
7: StackMap locals:
StackMap stack:
iload 1
ireturn
end local 1 end local 0 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 start local 1 start local 2 start local 3 0: aload 0
getfield org.bouncycastle.asn1.DefiniteLengthInputStream._remaining:I
ifne 2
1: iconst_m1
ireturn
2: StackMap locals:
StackMap stack:
iload 3
aload 0
getfield org.bouncycastle.asn1.DefiniteLengthInputStream._remaining:I
invokestatic java.lang.Math.min:(II)I
istore 4
start local 4 3: aload 0
getfield org.bouncycastle.asn1.DefiniteLengthInputStream._in:Ljava/io/InputStream;
aload 1
iload 2
iload 4
invokevirtual java.io.InputStream.read:([BII)I
istore 5
start local 5 4: iload 5
ifge 6
5: new java.io.EOFException
dup
new java.lang.StringBuilder
dup
ldc "DEF length "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
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
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: StackMap locals: int int
StackMap stack:
aload 0
dup
getfield org.bouncycastle.asn1.DefiniteLengthInputStream._remaining:I
iload 5
isub
dup_x1
putfield org.bouncycastle.asn1.DefiniteLengthInputStream._remaining:I
ifne 8
7: aload 0
iconst_1
invokevirtual org.bouncycastle.asn1.DefiniteLengthInputStream.setParentEofDetect:(Z)V
8: StackMap locals:
StackMap stack:
iload 5
ireturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 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 0: aload 0
getfield org.bouncycastle.asn1.DefiniteLengthInputStream._remaining:I
ifne 2
1: getstatic org.bouncycastle.asn1.DefiniteLengthInputStream.EMPTY_BYTES:[B
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.bouncycastle.asn1.DefiniteLengthInputStream._remaining:I
newarray 8
astore 1
start local 1 3: aload 0
dup
getfield org.bouncycastle.asn1.DefiniteLengthInputStream._remaining:I
aload 0
getfield org.bouncycastle.asn1.DefiniteLengthInputStream._in:Ljava/io/InputStream;
aload 1
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: new java.io.EOFException
dup
new java.lang.StringBuilder
dup
ldc "DEF length "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
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
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: StackMap locals: byte[]
StackMap stack:
aload 0
iconst_1
invokevirtual org.bouncycastle.asn1.DefiniteLengthInputStream.setParentEofDetect:(Z)V
6: aload 1
areturn
end local 1 end local 0 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"