public class org.apache.tomcat.util.http.fileupload.IOUtils
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.tomcat.util.http.fileupload.IOUtils
super_class: java.lang.Object
{
public static final int EOF;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: -1
private static final int DEFAULT_BUFFER_SIZE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 4096
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 Lorg/apache/tomcat/util/http/fileupload/IOUtils;
public static void closeQuietly(java.io.Closeable);
descriptor: (Ljava/io/Closeable;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
ifnull 4
1: aload 0
invokeinterface java.io.Closeable.close:()V
2: goto 4
StackMap locals:
StackMap stack: java.io.IOException
3: pop
4: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 closeable Ljava/io/Closeable;
Exception table:
from to target type
0 2 3 Class java.io.IOException
MethodParameters:
Name Flags
closeable final
public static int copy(java.io.InputStream, java.io.OutputStream);
descriptor: (Ljava/io/InputStream;Ljava/io/OutputStream;)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic org.apache.tomcat.util.http.fileupload.IOUtils.copyLarge:(Ljava/io/InputStream;Ljava/io/OutputStream;)J
lstore 2
start local 2 1: lload 2
ldc 2147483647
lcmp
ifle 3
2: iconst_m1
ireturn
3: StackMap locals: long
StackMap stack:
lload 2
l2i
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 input Ljava/io/InputStream;
0 4 1 output Ljava/io/OutputStream;
1 4 2 count J
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
input final
output final
public static long copyLarge(java.io.InputStream, java.io.OutputStream);
descriptor: (Ljava/io/InputStream;Ljava/io/OutputStream;)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=6, args_size=2
start local 0 start local 1 0: sipush 4096
newarray 8
astore 2
start local 2 1: lconst_0
lstore 3
start local 3 2: iconst_0
istore 5
start local 5 3: goto 6
4: StackMap locals: byte[] long int
StackMap stack:
aload 1
aload 2
iconst_0
iload 5
invokevirtual java.io.OutputStream.write:([BII)V
5: lload 3
iload 5
i2l
ladd
lstore 3
6: StackMap locals:
StackMap stack:
iconst_m1
aload 0
aload 2
invokevirtual java.io.InputStream.read:([B)I
dup
istore 5
if_icmpne 4
7: lload 3
lreturn
end local 5 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 input Ljava/io/InputStream;
0 8 1 output Ljava/io/OutputStream;
1 8 2 buffer [B
2 8 3 count J
3 8 5 n I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
input final
output final
public static int read(java.io.InputStream, byte[], int, int);
descriptor: (Ljava/io/InputStream;[BII)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 3
ifge 2
1: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Length must not be negative: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 3
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
iload 3
istore 4
start local 4 3: goto 9
4: StackMap locals: int
StackMap stack:
iload 3
iload 4
isub
istore 5
start local 5 5: aload 0
aload 1
iload 2
iload 5
iadd
iload 4
invokevirtual java.io.InputStream.read:([BII)I
istore 6
start local 6 6: iconst_m1
iload 6
if_icmpne 8
7: goto 10
8: StackMap locals: int int
StackMap stack:
iload 4
iload 6
isub
istore 4
end local 6 end local 5 9: StackMap locals:
StackMap stack:
iload 4
ifgt 4
10: StackMap locals:
StackMap stack:
iload 3
iload 4
isub
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 input Ljava/io/InputStream;
0 11 1 buffer [B
0 11 2 offset I
0 11 3 length I
3 11 4 remaining I
5 9 5 location I
6 9 6 count I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
input final
buffer final
offset final
length final
public static void readFully(java.io.InputStream, byte[], int, int);
descriptor: (Ljava/io/InputStream;[BII)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
iload 2
iload 3
invokestatic org.apache.tomcat.util.http.fileupload.IOUtils.read:(Ljava/io/InputStream;[BII)I
istore 4
start local 4 1: iload 4
iload 3
if_icmpeq 3
2: new java.io.EOFException
dup
new java.lang.StringBuilder
dup
ldc "Length to read: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 3
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " actual: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 4
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
3: StackMap locals: int
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 input Ljava/io/InputStream;
0 4 1 buffer [B
0 4 2 offset I
0 4 3 length I
1 4 4 actual I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
input final
buffer final
offset final
length final
public static void readFully(java.io.InputStream, byte[]);
descriptor: (Ljava/io/InputStream;[B)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_0
aload 1
arraylength
invokestatic org.apache.tomcat.util.http.fileupload.IOUtils.readFully:(Ljava/io/InputStream;[BII)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 input Ljava/io/InputStream;
0 2 1 buffer [B
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
input final
buffer final
}
SourceFile: "IOUtils.java"