public class sun.security.util.IOUtils
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.security.util.IOUtils
super_class: java.lang.Object
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/util/IOUtils;
public static byte[] readFully(java.io.InputStream, int, boolean);
descriptor: (Ljava/io/InputStream;IZ)[B
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=7, args_size=3
start local 0 start local 1 start local 2 0: iload 1
ifge 2
1: new java.io.IOException
dup
ldc "Invalid length"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
iconst_0
newarray 8
astore 3
start local 3 3: iconst_0
istore 4
start local 4 4: goto 19
5: StackMap locals: byte[] int
StackMap stack:
iload 4
aload 3
arraylength
if_icmplt 10
6: iload 1
iload 4
isub
aload 3
arraylength
sipush 1024
iadd
invokestatic java.lang.Math.min:(II)I
istore 5
start local 5 7: aload 3
arraylength
iload 4
iload 5
iadd
if_icmpge 11
8: aload 3
iload 4
iload 5
iadd
invokestatic java.util.Arrays.copyOf:([BI)[B
astore 3
9: goto 11
end local 5 10: StackMap locals:
StackMap stack:
aload 3
arraylength
iload 4
isub
istore 5
start local 5 11: StackMap locals: int
StackMap stack:
aload 0
aload 3
iload 4
iload 5
invokevirtual java.io.InputStream.read:([BII)I
istore 6
start local 6 12: iload 6
ifge 18
13: iload 2
ifeq 15
14: new java.io.EOFException
dup
ldc "Detect premature EOF"
invokespecial java.io.EOFException.<init>:(Ljava/lang/String;)V
athrow
15: StackMap locals: int
StackMap stack:
aload 3
arraylength
iload 4
if_icmpeq 20
16: aload 3
iload 4
invokestatic java.util.Arrays.copyOf:([BI)[B
astore 3
17: goto 20
18: StackMap locals:
StackMap stack:
iload 4
iload 6
iadd
istore 4
end local 6 end local 5 19: StackMap locals:
StackMap stack:
iload 4
iload 1
if_icmplt 5
20: StackMap locals:
StackMap stack:
aload 3
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 is Ljava/io/InputStream;
0 21 1 length I
0 21 2 readAll Z
3 21 3 output [B
4 21 4 pos I
7 10 5 bytesToRead I
11 19 5 bytesToRead I
12 19 6 cc I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
is
length
readAll
public static byte[] readNBytes(java.io.InputStream, int);
descriptor: (Ljava/io/InputStream;I)[B
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: iload 1
ifge 2
1: new java.io.IOException
dup
new java.lang.StringBuilder
dup
ldc "length cannot be negative: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
iload 1
iconst_1
invokestatic sun.security.util.IOUtils.readFully:(Ljava/io/InputStream;IZ)[B
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 is Ljava/io/InputStream;
0 3 1 length I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
is
length
}
SourceFile: "IOUtils.java"