public class org.apache.tomcat.util.http.fileupload.DeferredFileOutputStream extends org.apache.tomcat.util.http.fileupload.ThresholdingOutputStream
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.tomcat.util.http.fileupload.DeferredFileOutputStream
super_class: org.apache.tomcat.util.http.fileupload.ThresholdingOutputStream
{
private org.apache.tomcat.util.http.fileupload.ByteArrayOutputStream memoryOutputStream;
descriptor: Lorg/apache/tomcat/util/http/fileupload/ByteArrayOutputStream;
flags: (0x0002) ACC_PRIVATE
private java.io.OutputStream currentOutputStream;
descriptor: Ljava/io/OutputStream;
flags: (0x0002) ACC_PRIVATE
private java.io.File outputFile;
descriptor: Ljava/io/File;
flags: (0x0002) ACC_PRIVATE
private final java.lang.String prefix;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String suffix;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.io.File directory;
descriptor: Ljava/io/File;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(int, java.io.File);
descriptor: (ILjava/io/File;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iload 1
aload 2
aconst_null
aconst_null
aconst_null
sipush 1024
invokespecial org.apache.tomcat.util.http.fileupload.DeferredFileOutputStream.<init>:(ILjava/io/File;Ljava/lang/String;Ljava/lang/String;Ljava/io/File;I)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/tomcat/util/http/fileupload/DeferredFileOutputStream;
0 2 1 threshold I
0 2 2 outputFile Ljava/io/File;
MethodParameters:
Name Flags
threshold final
outputFile final
private void <init>(int, java.io.File, java.lang.String, java.lang.String, java.io.File, int);
descriptor: (ILjava/io/File;Ljava/lang/String;Ljava/lang/String;Ljava/io/File;I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, 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
iload 1
invokespecial org.apache.tomcat.util.http.fileupload.ThresholdingOutputStream.<init>:(I)V
1: aload 0
aload 2
putfield org.apache.tomcat.util.http.fileupload.DeferredFileOutputStream.outputFile:Ljava/io/File;
2: aload 0
aload 3
putfield org.apache.tomcat.util.http.fileupload.DeferredFileOutputStream.prefix:Ljava/lang/String;
3: aload 0
aload 4
putfield org.apache.tomcat.util.http.fileupload.DeferredFileOutputStream.suffix:Ljava/lang/String;
4: aload 0
aload 5
putfield org.apache.tomcat.util.http.fileupload.DeferredFileOutputStream.directory:Ljava/io/File;
5: aload 0
new org.apache.tomcat.util.http.fileupload.ByteArrayOutputStream
dup
iload 6
invokespecial org.apache.tomcat.util.http.fileupload.ByteArrayOutputStream.<init>:(I)V
putfield org.apache.tomcat.util.http.fileupload.DeferredFileOutputStream.memoryOutputStream:Lorg/apache/tomcat/util/http/fileupload/ByteArrayOutputStream;
6: aload 0
aload 0
getfield org.apache.tomcat.util.http.fileupload.DeferredFileOutputStream.memoryOutputStream:Lorg/apache/tomcat/util/http/fileupload/ByteArrayOutputStream;
putfield org.apache.tomcat.util.http.fileupload.DeferredFileOutputStream.currentOutputStream:Ljava/io/OutputStream;
7: 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 8 0 this Lorg/apache/tomcat/util/http/fileupload/DeferredFileOutputStream;
0 8 1 threshold I
0 8 2 outputFile Ljava/io/File;
0 8 3 prefix Ljava/lang/String;
0 8 4 suffix Ljava/lang/String;
0 8 5 directory Ljava/io/File;
0 8 6 initialBufferSize I
MethodParameters:
Name Flags
threshold final
outputFile final
prefix final
suffix final
directory final
initialBufferSize final
protected java.io.OutputStream getStream();
descriptor: ()Ljava/io/OutputStream;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.tomcat.util.http.fileupload.DeferredFileOutputStream.currentOutputStream:Ljava/io/OutputStream;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/tomcat/util/http/fileupload/DeferredFileOutputStream;
Exceptions:
throws java.io.IOException
protected void thresholdReached();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=3, args_size=1
start local 0 0: aload 0
getfield org.apache.tomcat.util.http.fileupload.DeferredFileOutputStream.prefix:Ljava/lang/String;
ifnull 2
1: aload 0
aload 0
getfield org.apache.tomcat.util.http.fileupload.DeferredFileOutputStream.prefix:Ljava/lang/String;
aload 0
getfield org.apache.tomcat.util.http.fileupload.DeferredFileOutputStream.suffix:Ljava/lang/String;
aload 0
getfield org.apache.tomcat.util.http.fileupload.DeferredFileOutputStream.directory:Ljava/io/File;
invokestatic java.io.File.createTempFile:(Ljava/lang/String;Ljava/lang/String;Ljava/io/File;)Ljava/io/File;
putfield org.apache.tomcat.util.http.fileupload.DeferredFileOutputStream.outputFile:Ljava/io/File;
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.tomcat.util.http.fileupload.DeferredFileOutputStream.outputFile:Ljava/io/File;
invokestatic org.apache.tomcat.util.http.fileupload.FileUtils.forceMkdirParent:(Ljava/io/File;)V
3: new java.io.FileOutputStream
dup
aload 0
getfield org.apache.tomcat.util.http.fileupload.DeferredFileOutputStream.outputFile:Ljava/io/File;
invokespecial java.io.FileOutputStream.<init>:(Ljava/io/File;)V
astore 1
start local 1 4: aload 0
getfield org.apache.tomcat.util.http.fileupload.DeferredFileOutputStream.memoryOutputStream:Lorg/apache/tomcat/util/http/fileupload/ByteArrayOutputStream;
aload 1
invokevirtual org.apache.tomcat.util.http.fileupload.ByteArrayOutputStream.writeTo:(Ljava/io/OutputStream;)V
5: goto 9
StackMap locals: org.apache.tomcat.util.http.fileupload.DeferredFileOutputStream java.io.FileOutputStream
StackMap stack: java.io.IOException
6: astore 2
start local 2 7: aload 1
invokevirtual java.io.FileOutputStream.close:()V
8: aload 2
athrow
end local 2 9: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield org.apache.tomcat.util.http.fileupload.DeferredFileOutputStream.currentOutputStream:Ljava/io/OutputStream;
10: aload 0
aconst_null
putfield org.apache.tomcat.util.http.fileupload.DeferredFileOutputStream.memoryOutputStream:Lorg/apache/tomcat/util/http/fileupload/ByteArrayOutputStream;
11: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/apache/tomcat/util/http/fileupload/DeferredFileOutputStream;
4 12 1 fos Ljava/io/FileOutputStream;
7 9 2 e Ljava/io/IOException;
Exception table:
from to target type
4 5 6 Class java.io.IOException
Exceptions:
throws java.io.IOException
public boolean isInMemory();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.tomcat.util.http.fileupload.DeferredFileOutputStream.isThresholdExceeded:()Z
ifeq 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: iconst_1
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/tomcat/util/http/fileupload/DeferredFileOutputStream;
public byte[] getData();
descriptor: ()[B
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.DeferredFileOutputStream.memoryOutputStream:Lorg/apache/tomcat/util/http/fileupload/ByteArrayOutputStream;
ifnull 2
1: aload 0
getfield org.apache.tomcat.util.http.fileupload.DeferredFileOutputStream.memoryOutputStream:Lorg/apache/tomcat/util/http/fileupload/ByteArrayOutputStream;
invokevirtual org.apache.tomcat.util.http.fileupload.ByteArrayOutputStream.toByteArray:()[B
areturn
2: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/tomcat/util/http/fileupload/DeferredFileOutputStream;
public java.io.File getFile();
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.DeferredFileOutputStream.outputFile:Ljava/io/File;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/tomcat/util/http/fileupload/DeferredFileOutputStream;
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial org.apache.tomcat.util.http.fileupload.ThresholdingOutputStream.close:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/tomcat/util/http/fileupload/DeferredFileOutputStream;
Exceptions:
throws java.io.IOException
}
SourceFile: "DeferredFileOutputStream.java"