public class sun.misc.IOUtils
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.misc.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/misc/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: iconst_0
newarray 8
astore 3
start local 3 1: iload 1
iconst_m1
if_icmpne 2
ldc 2147483647
istore 1
2: StackMap locals: byte[]
StackMap stack:
iconst_0
istore 4
start local 4 3: goto 18
4: StackMap locals: int
StackMap stack:
iload 4
aload 3
arraylength
if_icmplt 9
5: iload 1
iload 4
isub
aload 3
arraylength
sipush 1024
iadd
invokestatic java.lang.Math.min:(II)I
istore 5
start local 5 6: aload 3
arraylength
iload 4
iload 5
iadd
if_icmpge 10
7: aload 3
iload 4
iload 5
iadd
invokestatic java.util.Arrays.copyOf:([BI)[B
astore 3
8: goto 10
end local 5 9: StackMap locals:
StackMap stack:
aload 3
arraylength
iload 4
isub
istore 5
start local 5 10: 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 11: iload 6
ifge 17
12: iload 2
ifeq 14
iload 1
ldc 2147483647
if_icmpeq 14
13: new java.io.EOFException
dup
ldc "Detect premature EOF"
invokespecial java.io.EOFException.<init>:(Ljava/lang/String;)V
athrow
14: StackMap locals: int
StackMap stack:
aload 3
arraylength
iload 4
if_icmpeq 19
15: aload 3
iload 4
invokestatic java.util.Arrays.copyOf:([BI)[B
astore 3
16: goto 19
17: StackMap locals:
StackMap stack:
iload 4
iload 6
iadd
istore 4
end local 6 end local 5 18: StackMap locals:
StackMap stack:
iload 4
iload 1
if_icmplt 4
19: 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 20 0 is Ljava/io/InputStream;
0 20 1 length I
0 20 2 readAll Z
1 20 3 output [B
3 20 4 pos I
6 9 5 bytesToRead I
10 18 5 bytesToRead I
11 18 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.misc.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
public static java.io.File createTempFile(java.lang.String, java.lang.String, java.io.File);
descriptor: (Ljava/lang/String;Ljava/lang/String;Ljava/io/File;)Ljava/io/File;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: invokestatic sun.misc.SharedSecrets.getJavaIOFileAccess:()Lsun/misc/JavaIOFileAccess;
aload 0
aload 1
aload 2
invokeinterface sun.misc.JavaIOFileAccess.createTempFile:(Ljava/lang/String;Ljava/lang/String;Ljava/io/File;)Ljava/io/File;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 prefix Ljava/lang/String;
0 1 1 suffix Ljava/lang/String;
0 1 2 directory Ljava/io/File;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
prefix
suffix
directory
public static java.io.File createTempFile(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Ljava/io/File;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: invokestatic sun.misc.SharedSecrets.getJavaIOFileAccess:()Lsun/misc/JavaIOFileAccess;
aload 0
aload 1
aconst_null
invokeinterface sun.misc.JavaIOFileAccess.createTempFile:(Ljava/lang/String;Ljava/lang/String;Ljava/io/File;)Ljava/io/File;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 prefix Ljava/lang/String;
0 1 1 suffix Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
prefix
suffix
}
SourceFile: "IOUtils.java"