public class org.apache.tomcat.util.http.fileupload.disk.DiskFileItem implements org.apache.tomcat.util.http.fileupload.FileItem
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.tomcat.util.http.fileupload.disk.DiskFileItem
super_class: java.lang.Object
{
public static final java.lang.String DEFAULT_CHARSET;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "ISO-8859-1"
private static final java.lang.String UID;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.util.concurrent.atomic.AtomicInteger COUNTER;
descriptor: Ljava/util/concurrent/atomic/AtomicInteger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private java.lang.String fieldName;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private final java.lang.String contentType;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private boolean isFormField;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private final java.lang.String fileName;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private long size;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private final int sizeThreshold;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.io.File repository;
descriptor: Ljava/io/File;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private byte[] cachedContent;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private transient org.apache.tomcat.util.http.fileupload.DeferredFileOutputStream dfos;
descriptor: Lorg/apache/tomcat/util/http/fileupload/DeferredFileOutputStream;
flags: (0x0082) ACC_PRIVATE, ACC_TRANSIENT
private transient java.io.File tempFile;
descriptor: Ljava/io/File;
flags: (0x0082) ACC_PRIVATE, ACC_TRANSIENT
private org.apache.tomcat.util.http.fileupload.FileItemHeaders ;
descriptor: Lorg/apache/tomcat/util/http/fileupload/FileItemHeaders;
flags: (0x0002) ACC_PRIVATE
private java.lang.String defaultCharset;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: invokestatic java.util.UUID.randomUUID:()Ljava/util/UUID;
invokevirtual java.util.UUID.toString:()Ljava/lang/String;
bipush 45
bipush 95
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
1: putstatic org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.UID:Ljava/lang/String;
2: new java.util.concurrent.atomic.AtomicInteger
dup
iconst_0
invokespecial java.util.concurrent.atomic.AtomicInteger.<init>:(I)V
putstatic org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.COUNTER:Ljava/util/concurrent/atomic/AtomicInteger;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.lang.String, java.lang.String, boolean, java.lang.String, int, java.io.File);
descriptor: (Ljava/lang/String;Ljava/lang/String;ZLjava/lang/String;ILjava/io/File;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=7, args_size=7
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
ldc -1
putfield org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.size:J
2: aload 0
ldc "ISO-8859-1"
putfield org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.defaultCharset:Ljava/lang/String;
3: aload 0
aload 1
putfield org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.fieldName:Ljava/lang/String;
4: aload 0
aload 2
putfield org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.contentType:Ljava/lang/String;
5: aload 0
iload 3
putfield org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.isFormField:Z
6: aload 0
aload 4
putfield org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.fileName:Ljava/lang/String;
7: aload 0
iload 5
putfield org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.sizeThreshold:I
8: aload 0
aload 6
putfield org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.repository:Ljava/io/File;
9: return
end local 6 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 10 0 this Lorg/apache/tomcat/util/http/fileupload/disk/DiskFileItem;
0 10 1 fieldName Ljava/lang/String;
0 10 2 contentType Ljava/lang/String;
0 10 3 isFormField Z
0 10 4 fileName Ljava/lang/String;
0 10 5 sizeThreshold I
0 10 6 repository Ljava/io/File;
MethodParameters:
Name Flags
fieldName
contentType
isFormField
fileName
sizeThreshold
repository
public java.io.InputStream getInputStream();
descriptor: ()Ljava/io/InputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.isInMemory:()Z
ifne 2
1: new java.io.FileInputStream
dup
aload 0
getfield org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.dfos:Lorg/apache/tomcat/util/http/fileupload/DeferredFileOutputStream;
invokevirtual org.apache.tomcat.util.http.fileupload.DeferredFileOutputStream.getFile:()Ljava/io/File;
invokespecial java.io.FileInputStream.<init>:(Ljava/io/File;)V
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.cachedContent:[B
ifnonnull 4
3: aload 0
aload 0
getfield org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.dfos:Lorg/apache/tomcat/util/http/fileupload/DeferredFileOutputStream;
invokevirtual org.apache.tomcat.util.http.fileupload.DeferredFileOutputStream.getData:()[B
putfield org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.cachedContent:[B
4: StackMap locals:
StackMap stack:
new java.io.ByteArrayInputStream
dup
aload 0
getfield org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.cachedContent:[B
invokespecial java.io.ByteArrayInputStream.<init>:([B)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/tomcat/util/http/fileupload/disk/DiskFileItem;
Exceptions:
throws java.io.IOException
public java.lang.String getContentType();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.contentType:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/tomcat/util/http/fileupload/disk/DiskFileItem;
public java.lang.String getCharSet();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: new org.apache.tomcat.util.http.fileupload.ParameterParser
dup
invokespecial org.apache.tomcat.util.http.fileupload.ParameterParser.<init>:()V
astore 1
start local 1 1: aload 1
iconst_1
invokevirtual org.apache.tomcat.util.http.fileupload.ParameterParser.setLowerCaseNames:(Z)V
2: aload 1
aload 0
invokevirtual org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.getContentType:()Ljava/lang/String;
bipush 59
invokevirtual org.apache.tomcat.util.http.fileupload.ParameterParser.parse:(Ljava/lang/String;C)Ljava/util/Map;
astore 2
start local 2 3: aload 2
ldc "charset"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/tomcat/util/http/fileupload/disk/DiskFileItem;
1 4 1 parser Lorg/apache/tomcat/util/http/fileupload/ParameterParser;
3 4 2 params Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
public java.lang.String getName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.fileName:Ljava/lang/String;
invokestatic org.apache.tomcat.util.http.fileupload.util.Streams.checkFileName:(Ljava/lang/String;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/tomcat/util/http/fileupload/disk/DiskFileItem;
public boolean isInMemory();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.cachedContent:[B
ifnull 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.dfos:Lorg/apache/tomcat/util/http/fileupload/DeferredFileOutputStream;
invokevirtual org.apache.tomcat.util.http.fileupload.DeferredFileOutputStream.isInMemory:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/tomcat/util/http/fileupload/disk/DiskFileItem;
public long getSize();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.size:J
lconst_0
lcmp
iflt 2
1: aload 0
getfield org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.size:J
lreturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.cachedContent:[B
ifnull 4
3: aload 0
getfield org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.cachedContent:[B
arraylength
i2l
lreturn
4: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.dfos:Lorg/apache/tomcat/util/http/fileupload/DeferredFileOutputStream;
invokevirtual org.apache.tomcat.util.http.fileupload.DeferredFileOutputStream.isInMemory:()Z
ifeq 6
5: aload 0
getfield org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.dfos:Lorg/apache/tomcat/util/http/fileupload/DeferredFileOutputStream;
invokevirtual org.apache.tomcat.util.http.fileupload.DeferredFileOutputStream.getData:()[B
arraylength
i2l
lreturn
6: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.dfos:Lorg/apache/tomcat/util/http/fileupload/DeferredFileOutputStream;
invokevirtual org.apache.tomcat.util.http.fileupload.DeferredFileOutputStream.getFile:()Ljava/io/File;
invokevirtual java.io.File.length:()J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/tomcat/util/http/fileupload/disk/DiskFileItem;
public byte[] get();
descriptor: ()[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.isInMemory:()Z
ifeq 4
1: aload 0
getfield org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.cachedContent:[B
ifnonnull 3
aload 0
getfield org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.dfos:Lorg/apache/tomcat/util/http/fileupload/DeferredFileOutputStream;
ifnull 3
2: aload 0
aload 0
getfield org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.dfos:Lorg/apache/tomcat/util/http/fileupload/DeferredFileOutputStream;
invokevirtual org.apache.tomcat.util.http.fileupload.DeferredFileOutputStream.getData:()[B
putfield org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.cachedContent:[B
3: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.cachedContent:[B
areturn
4: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.getSize:()J
l2i
newarray 8
astore 1
start local 1 5: aconst_null
astore 2
start local 2 6: new java.io.FileInputStream
dup
aload 0
getfield org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.dfos:Lorg/apache/tomcat/util/http/fileupload/DeferredFileOutputStream;
invokevirtual org.apache.tomcat.util.http.fileupload.DeferredFileOutputStream.getFile:()Ljava/io/File;
invokespecial java.io.FileInputStream.<init>:(Ljava/io/File;)V
astore 2
7: aload 2
aload 1
invokestatic org.apache.tomcat.util.http.fileupload.IOUtils.readFully:(Ljava/io/InputStream;[B)V
8: goto 15
StackMap locals: org.apache.tomcat.util.http.fileupload.disk.DiskFileItem byte[] java.io.InputStream
StackMap stack: java.io.IOException
9: pop
10: aconst_null
astore 1
11: aload 2
invokestatic org.apache.tomcat.util.http.fileupload.IOUtils.closeQuietly:(Ljava/io/Closeable;)V
goto 16
12: StackMap locals:
StackMap stack: java.lang.Throwable
astore 3
13: aload 2
invokestatic org.apache.tomcat.util.http.fileupload.IOUtils.closeQuietly:(Ljava/io/Closeable;)V
14: aload 3
athrow
15: StackMap locals:
StackMap stack:
aload 2
invokestatic org.apache.tomcat.util.http.fileupload.IOUtils.closeQuietly:(Ljava/io/Closeable;)V
16: StackMap locals:
StackMap stack:
aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lorg/apache/tomcat/util/http/fileupload/disk/DiskFileItem;
5 17 1 fileData [B
6 17 2 fis Ljava/io/InputStream;
Exception table:
from to target type
6 8 9 Class java.io.IOException
6 11 12 any
public java.lang.String getString(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: new java.lang.String
dup
aload 0
invokevirtual org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.get:()[B
aload 1
invokespecial java.lang.String.<init>:([BLjava/lang/String;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/tomcat/util/http/fileupload/disk/DiskFileItem;
0 1 1 charset Ljava/lang/String;
Exceptions:
throws java.io.UnsupportedEncodingException
MethodParameters:
Name Flags
charset final
public java.lang.String getString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.get:()[B
astore 1
start local 1 1: aload 0
invokevirtual org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.getCharSet:()Ljava/lang/String;
astore 2
start local 2 2: aload 2
ifnonnull 4
3: aload 0
getfield org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.defaultCharset:Ljava/lang/String;
astore 2
4: StackMap locals: byte[] java.lang.String
StackMap stack:
new java.lang.String
dup
aload 1
aload 2
invokespecial java.lang.String.<init>:([BLjava/lang/String;)V
5: areturn
6: StackMap locals:
StackMap stack: java.io.UnsupportedEncodingException
pop
7: new java.lang.String
dup
aload 1
invokespecial java.lang.String.<init>:([B)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/apache/tomcat/util/http/fileupload/disk/DiskFileItem;
1 8 1 rawdata [B
2 8 2 charset Ljava/lang/String;
Exception table:
from to target type
4 5 6 Class java.io.UnsupportedEncodingException
public void write(java.io.File);
descriptor: (Ljava/io/File;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.isInMemory:()Z
ifeq 11
1: aconst_null
astore 2
start local 2 2: new java.io.FileOutputStream
dup
aload 1
invokespecial java.io.FileOutputStream.<init>:(Ljava/io/File;)V
astore 2
3: aload 2
aload 0
invokevirtual org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.get:()[B
invokevirtual java.io.FileOutputStream.write:([B)V
4: aload 2
invokevirtual java.io.FileOutputStream.close:()V
5: goto 9
StackMap locals: org.apache.tomcat.util.http.fileupload.disk.DiskFileItem java.io.File java.io.FileOutputStream
StackMap stack: java.lang.Throwable
6: astore 3
7: aload 2
invokestatic org.apache.tomcat.util.http.fileupload.IOUtils.closeQuietly:(Ljava/io/Closeable;)V
8: aload 3
athrow
9: StackMap locals:
StackMap stack:
aload 2
invokestatic org.apache.tomcat.util.http.fileupload.IOUtils.closeQuietly:(Ljava/io/Closeable;)V
end local 2 10: goto 41
11: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.getStoreLocation:()Ljava/io/File;
astore 2
start local 2 12: aload 2
ifnull 38
13: aload 0
aload 2
invokevirtual java.io.File.length:()J
putfield org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.size:J
14: aload 1
invokevirtual java.io.File.exists:()Z
ifeq 19
15: aload 1
invokevirtual java.io.File.delete:()Z
ifne 19
16: new org.apache.tomcat.util.http.fileupload.FileUploadException
dup
17: ldc "Cannot write uploaded file to disk!"
18: invokespecial org.apache.tomcat.util.http.fileupload.FileUploadException.<init>:(Ljava/lang/String;)V
athrow
19: StackMap locals: java.io.File
StackMap stack:
aload 2
aload 1
invokevirtual java.io.File.renameTo:(Ljava/io/File;)Z
ifne 41
20: aconst_null
astore 3
start local 3 21: aconst_null
astore 4
start local 4 22: new java.io.BufferedInputStream
dup
23: new java.io.FileInputStream
dup
aload 2
invokespecial java.io.FileInputStream.<init>:(Ljava/io/File;)V
24: invokespecial java.io.BufferedInputStream.<init>:(Ljava/io/InputStream;)V
astore 3
25: new java.io.BufferedOutputStream
dup
26: new java.io.FileOutputStream
dup
aload 1
invokespecial java.io.FileOutputStream.<init>:(Ljava/io/File;)V
27: invokespecial java.io.BufferedOutputStream.<init>:(Ljava/io/OutputStream;)V
astore 4
28: aload 3
aload 4
invokestatic org.apache.tomcat.util.http.fileupload.IOUtils.copy:(Ljava/io/InputStream;Ljava/io/OutputStream;)I
pop
29: aload 4
invokevirtual java.io.BufferedOutputStream.close:()V
30: goto 35
StackMap locals: org.apache.tomcat.util.http.fileupload.disk.DiskFileItem java.io.File java.io.File java.io.BufferedInputStream java.io.BufferedOutputStream
StackMap stack: java.lang.Throwable
31: astore 5
32: aload 3
invokestatic org.apache.tomcat.util.http.fileupload.IOUtils.closeQuietly:(Ljava/io/Closeable;)V
33: aload 4
invokestatic org.apache.tomcat.util.http.fileupload.IOUtils.closeQuietly:(Ljava/io/Closeable;)V
34: aload 5
athrow
35: StackMap locals:
StackMap stack:
aload 3
invokestatic org.apache.tomcat.util.http.fileupload.IOUtils.closeQuietly:(Ljava/io/Closeable;)V
36: aload 4
invokestatic org.apache.tomcat.util.http.fileupload.IOUtils.closeQuietly:(Ljava/io/Closeable;)V
end local 4 end local 3 37: goto 41
38: StackMap locals:
StackMap stack:
new org.apache.tomcat.util.http.fileupload.FileUploadException
dup
39: ldc "Cannot write uploaded file to disk!"
40: invokespecial org.apache.tomcat.util.http.fileupload.FileUploadException.<init>:(Ljava/lang/String;)V
athrow
end local 2 41: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 42 0 this Lorg/apache/tomcat/util/http/fileupload/disk/DiskFileItem;
0 42 1 file Ljava/io/File;
2 10 2 fout Ljava/io/FileOutputStream;
12 41 2 outputFile Ljava/io/File;
21 37 3 in Ljava/io/BufferedInputStream;
22 37 4 out Ljava/io/BufferedOutputStream;
Exception table:
from to target type
2 6 6 any
22 31 31 any
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
file
public void delete();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
aconst_null
putfield org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.cachedContent:[B
1: aload 0
invokevirtual org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.getStoreLocation:()Ljava/io/File;
astore 1
start local 1 2: aload 1
ifnull 4
aload 0
invokevirtual org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.isInMemory:()Z
ifne 4
aload 1
invokevirtual java.io.File.exists:()Z
ifeq 4
3: aload 1
invokevirtual java.io.File.delete:()Z
pop
4: StackMap locals: java.io.File
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/tomcat/util/http/fileupload/disk/DiskFileItem;
2 5 1 outputFile Ljava/io/File;
public java.lang.String getFieldName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.fieldName:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/tomcat/util/http/fileupload/disk/DiskFileItem;
public void setFieldName(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.fieldName:Ljava/lang/String;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/tomcat/util/http/fileupload/disk/DiskFileItem;
0 2 1 fieldName Ljava/lang/String;
MethodParameters:
Name Flags
fieldName
public boolean isFormField();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.isFormField:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/tomcat/util/http/fileupload/disk/DiskFileItem;
public void setFormField(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.isFormField:Z
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/tomcat/util/http/fileupload/disk/DiskFileItem;
0 2 1 state Z
MethodParameters:
Name Flags
state
public java.io.OutputStream getOutputStream();
descriptor: ()Ljava/io/OutputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
getfield org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.dfos:Lorg/apache/tomcat/util/http/fileupload/DeferredFileOutputStream;
ifnonnull 3
1: aload 0
invokevirtual org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.getTempFile:()Ljava/io/File;
astore 1
start local 1 2: aload 0
new org.apache.tomcat.util.http.fileupload.DeferredFileOutputStream
dup
aload 0
getfield org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.sizeThreshold:I
aload 1
invokespecial org.apache.tomcat.util.http.fileupload.DeferredFileOutputStream.<init>:(ILjava/io/File;)V
putfield org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.dfos:Lorg/apache/tomcat/util/http/fileupload/DeferredFileOutputStream;
end local 1 3: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.dfos:Lorg/apache/tomcat/util/http/fileupload/DeferredFileOutputStream;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/tomcat/util/http/fileupload/disk/DiskFileItem;
2 3 1 outputFile Ljava/io/File;
Exceptions:
throws java.io.IOException
public java.io.File getStoreLocation();
descriptor: ()Ljava/io/File;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.dfos:Lorg/apache/tomcat/util/http/fileupload/DeferredFileOutputStream;
ifnonnull 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.isInMemory:()Z
ifeq 4
3: aconst_null
areturn
4: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.dfos:Lorg/apache/tomcat/util/http/fileupload/DeferredFileOutputStream;
invokevirtual org.apache.tomcat.util.http.fileupload.DeferredFileOutputStream.getFile:()Ljava/io/File;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/tomcat/util/http/fileupload/disk/DiskFileItem;
protected void finalize();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
getfield org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.dfos:Lorg/apache/tomcat/util/http/fileupload/DeferredFileOutputStream;
ifnull 1
aload 0
getfield org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.dfos:Lorg/apache/tomcat/util/http/fileupload/DeferredFileOutputStream;
invokevirtual org.apache.tomcat.util.http.fileupload.DeferredFileOutputStream.isInMemory:()Z
ifeq 2
1: StackMap locals:
StackMap stack:
return
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.dfos:Lorg/apache/tomcat/util/http/fileupload/DeferredFileOutputStream;
invokevirtual org.apache.tomcat.util.http.fileupload.DeferredFileOutputStream.getFile:()Ljava/io/File;
astore 1
start local 1 3: aload 1
ifnull 5
aload 1
invokevirtual java.io.File.exists:()Z
ifeq 5
4: aload 1
invokevirtual java.io.File.delete:()Z
pop
5: StackMap locals: java.io.File
StackMap stack:
aload 0
invokespecial java.lang.Object.finalize:()V
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/tomcat/util/http/fileupload/disk/DiskFileItem;
3 7 1 outputFile Ljava/io/File;
Exceptions:
throws java.lang.Throwable
protected java.io.File getTempFile();
descriptor: ()Ljava/io/File;
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=3, args_size=1
start local 0 0: aload 0
getfield org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.tempFile:Ljava/io/File;
ifnonnull 6
1: aload 0
getfield org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.repository:Ljava/io/File;
astore 1
start local 1 2: aload 1
ifnonnull 4
3: new java.io.File
dup
ldc "java.io.tmpdir"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 1
4: StackMap locals: java.io.File
StackMap stack:
ldc "upload_%s_%s.tmp"
iconst_2
anewarray java.lang.Object
dup
iconst_0
getstatic org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.UID:Ljava/lang/String;
aastore
dup
iconst_1
invokestatic org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.getUniqueId:()Ljava/lang/String;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
astore 2
start local 2 5: aload 0
new java.io.File
dup
aload 1
aload 2
invokespecial java.io.File.<init>:(Ljava/io/File;Ljava/lang/String;)V
putfield org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.tempFile:Ljava/io/File;
end local 2 end local 1 6: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.tempFile:Ljava/io/File;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/tomcat/util/http/fileupload/disk/DiskFileItem;
2 6 1 tempDir Ljava/io/File;
5 6 2 tempFileName Ljava/lang/String;
private static java.lang.String getUniqueId();
descriptor: ()Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=0
0: getstatic org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.COUNTER:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.getAndIncrement:()I
istore 0
start local 0 1: iload 0
invokestatic java.lang.Integer.toString:(I)Ljava/lang/String;
astore 1
start local 1 2: iload 0
ldc 100000000
if_icmpge 4
3: new java.lang.StringBuilder
dup
ldc "00000000"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 1
invokevirtual java.lang.String.length:()I
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 1
4: StackMap locals: int java.lang.String
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
1 5 0 current I
2 5 1 id Ljava/lang/String;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=1, args_size=1
start local 0 0: ldc "name=%s, StoreLocation=%s, size=%s bytes, isFormField=%s, FieldName=%s"
iconst_5
anewarray java.lang.Object
dup
iconst_0
1: aload 0
invokevirtual org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.getName:()Ljava/lang/String;
aastore
dup
iconst_1
aload 0
invokevirtual org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.getStoreLocation:()Ljava/io/File;
aastore
dup
iconst_2
aload 0
invokevirtual org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.getSize:()J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
dup
iconst_3
2: aload 0
invokevirtual org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.isFormField:()Z
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
aastore
dup
iconst_4
aload 0
invokevirtual org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.getFieldName:()Ljava/lang/String;
aastore
3: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/tomcat/util/http/fileupload/disk/DiskFileItem;
public org.apache.tomcat.util.http.fileupload.FileItemHeaders ();
descriptor: ()Lorg/apache/tomcat/util/http/fileupload/FileItemHeaders;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.headers:Lorg/apache/tomcat/util/http/fileupload/FileItemHeaders;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/tomcat/util/http/fileupload/disk/DiskFileItem;
public void (org.apache.tomcat.util.http.fileupload.FileItemHeaders);
descriptor: (Lorg/apache/tomcat/util/http/fileupload/FileItemHeaders;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.headers:Lorg/apache/tomcat/util/http/fileupload/FileItemHeaders;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/tomcat/util/http/fileupload/disk/DiskFileItem;
0 2 1 pHeaders Lorg/apache/tomcat/util/http/fileupload/FileItemHeaders;
MethodParameters:
Name Flags
pHeaders
public java.lang.String getDefaultCharset();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.defaultCharset:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/tomcat/util/http/fileupload/disk/DiskFileItem;
public void setDefaultCharset(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.defaultCharset:Ljava/lang/String;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/tomcat/util/http/fileupload/disk/DiskFileItem;
0 2 1 charset Ljava/lang/String;
MethodParameters:
Name Flags
charset
}
SourceFile: "DiskFileItem.java"