public abstract class org.apache.tomcat.util.http.fileupload.ThresholdingOutputStream extends java.io.OutputStream
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: org.apache.tomcat.util.http.fileupload.ThresholdingOutputStream
super_class: java.io.OutputStream
{
private final int threshold;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private long written;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private boolean thresholdExceeded;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
public void <init>(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.io.OutputStream.<init>:()V
1: aload 0
iload 1
putfield org.apache.tomcat.util.http.fileupload.ThresholdingOutputStream.threshold:I
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/tomcat/util/http/fileupload/ThresholdingOutputStream;
0 3 1 threshold I
MethodParameters:
Name Flags
threshold final
public void write(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iconst_1
invokevirtual org.apache.tomcat.util.http.fileupload.ThresholdingOutputStream.checkThreshold:(I)V
1: aload 0
invokevirtual org.apache.tomcat.util.http.fileupload.ThresholdingOutputStream.getStream:()Ljava/io/OutputStream;
iload 1
invokevirtual java.io.OutputStream.write:(I)V
2: aload 0
dup
getfield org.apache.tomcat.util.http.fileupload.ThresholdingOutputStream.written:J
lconst_1
ladd
putfield org.apache.tomcat.util.http.fileupload.ThresholdingOutputStream.written:J
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/tomcat/util/http/fileupload/ThresholdingOutputStream;
0 4 1 b I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b final
public void write(byte[]);
descriptor: ([B)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
arraylength
invokevirtual org.apache.tomcat.util.http.fileupload.ThresholdingOutputStream.checkThreshold:(I)V
1: aload 0
invokevirtual org.apache.tomcat.util.http.fileupload.ThresholdingOutputStream.getStream:()Ljava/io/OutputStream;
aload 1
invokevirtual java.io.OutputStream.write:([B)V
2: aload 0
dup
getfield org.apache.tomcat.util.http.fileupload.ThresholdingOutputStream.written:J
aload 1
arraylength
i2l
ladd
putfield org.apache.tomcat.util.http.fileupload.ThresholdingOutputStream.written:J
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/tomcat/util/http/fileupload/ThresholdingOutputStream;
0 4 1 b [B
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b final
public void write(byte[], int, int);
descriptor: ([BII)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
iload 3
invokevirtual org.apache.tomcat.util.http.fileupload.ThresholdingOutputStream.checkThreshold:(I)V
1: aload 0
invokevirtual org.apache.tomcat.util.http.fileupload.ThresholdingOutputStream.getStream:()Ljava/io/OutputStream;
aload 1
iload 2
iload 3
invokevirtual java.io.OutputStream.write:([BII)V
2: aload 0
dup
getfield org.apache.tomcat.util.http.fileupload.ThresholdingOutputStream.written:J
iload 3
i2l
ladd
putfield org.apache.tomcat.util.http.fileupload.ThresholdingOutputStream.written:J
3: return
end local 3 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/ThresholdingOutputStream;
0 4 1 b [B
0 4 2 off I
0 4 3 len I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b final
off final
len final
public void flush();
descriptor: ()V
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.ThresholdingOutputStream.getStream:()Ljava/io/OutputStream;
invokevirtual java.io.OutputStream.flush:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/tomcat/util/http/fileupload/ThresholdingOutputStream;
Exceptions:
throws java.io.IOException
public void close();
descriptor: ()V
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.ThresholdingOutputStream.flush:()V
1: goto 3
2: StackMap locals:
StackMap stack: java.io.IOException
pop
3: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.tomcat.util.http.fileupload.ThresholdingOutputStream.getStream:()Ljava/io/OutputStream;
invokevirtual java.io.OutputStream.close:()V
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/tomcat/util/http/fileupload/ThresholdingOutputStream;
Exception table:
from to target type
0 1 2 Class java.io.IOException
Exceptions:
throws java.io.IOException
public boolean isThresholdExceeded();
descriptor: ()Z
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.ThresholdingOutputStream.written:J
aload 0
getfield org.apache.tomcat.util.http.fileupload.ThresholdingOutputStream.threshold:I
i2l
lcmp
ifle 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/tomcat/util/http/fileupload/ThresholdingOutputStream;
protected void checkThreshold(int);
descriptor: (I)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.tomcat.util.http.fileupload.ThresholdingOutputStream.thresholdExceeded:Z
ifne 3
aload 0
getfield org.apache.tomcat.util.http.fileupload.ThresholdingOutputStream.written:J
iload 1
i2l
ladd
aload 0
getfield org.apache.tomcat.util.http.fileupload.ThresholdingOutputStream.threshold:I
i2l
lcmp
ifle 3
1: aload 0
iconst_1
putfield org.apache.tomcat.util.http.fileupload.ThresholdingOutputStream.thresholdExceeded:Z
2: aload 0
invokevirtual org.apache.tomcat.util.http.fileupload.ThresholdingOutputStream.thresholdReached:()V
3: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/tomcat/util/http/fileupload/ThresholdingOutputStream;
0 4 1 count I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
count final
protected abstract java.io.OutputStream getStream();
descriptor: ()Ljava/io/OutputStream;
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
Exceptions:
throws java.io.IOException
protected abstract void thresholdReached();
descriptor: ()V
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
Exceptions:
throws java.io.IOException
}
SourceFile: "ThresholdingOutputStream.java"