class sun.net.httpserver.FixedLengthOutputStream extends java.io.FilterOutputStream
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.net.httpserver.FixedLengthOutputStream
super_class: java.io.FilterOutputStream
{
private long remaining;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private boolean eof;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private boolean closed;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
sun.net.httpserver.ExchangeImpl t;
descriptor: Lsun/net/httpserver/ExchangeImpl;
flags: (0x0000)
void <init>(sun.net.httpserver.ExchangeImpl, java.io.OutputStream, long);
descriptor: (Lsun/net/httpserver/ExchangeImpl;Ljava/io/OutputStream;J)V
flags: (0x0000)
Code:
stack=3, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 2
invokespecial java.io.FilterOutputStream.<init>:(Ljava/io/OutputStream;)V
1: aload 0
iconst_0
putfield sun.net.httpserver.FixedLengthOutputStream.eof:Z
2: aload 0
iconst_0
putfield sun.net.httpserver.FixedLengthOutputStream.closed:Z
3: aload 0
aload 1
putfield sun.net.httpserver.FixedLengthOutputStream.t:Lsun/net/httpserver/ExchangeImpl;
4: aload 0
lload 3
putfield sun.net.httpserver.FixedLengthOutputStream.remaining:J
5: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/net/httpserver/FixedLengthOutputStream;
0 6 1 t Lsun/net/httpserver/ExchangeImpl;
0 6 2 src Ljava/io/OutputStream;
0 6 3 len J
MethodParameters:
Name Flags
t
src
len
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
getfield sun.net.httpserver.FixedLengthOutputStream.closed:Z
ifeq 2
1: new java.io.IOException
dup
ldc "stream closed"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield sun.net.httpserver.FixedLengthOutputStream.remaining:J
lconst_0
lcmp
ifne 3
iconst_1
goto 4
StackMap locals:
StackMap stack: sun.net.httpserver.FixedLengthOutputStream
3: iconst_0
StackMap locals: sun.net.httpserver.FixedLengthOutputStream int
StackMap stack: sun.net.httpserver.FixedLengthOutputStream int
4: putfield sun.net.httpserver.FixedLengthOutputStream.eof:Z
5: aload 0
getfield sun.net.httpserver.FixedLengthOutputStream.eof:Z
ifeq 7
6: new sun.net.httpserver.StreamClosedException
dup
invokespecial sun.net.httpserver.StreamClosedException.<init>:()V
athrow
7: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.httpserver.FixedLengthOutputStream.out:Ljava/io/OutputStream;
iload 1
invokevirtual java.io.OutputStream.write:(I)V
8: aload 0
dup
getfield sun.net.httpserver.FixedLengthOutputStream.remaining:J
lconst_1
lsub
putfield sun.net.httpserver.FixedLengthOutputStream.remaining:J
9: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lsun/net/httpserver/FixedLengthOutputStream;
0 10 1 b I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
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
getfield sun.net.httpserver.FixedLengthOutputStream.closed:Z
ifeq 2
1: new java.io.IOException
dup
ldc "stream closed"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield sun.net.httpserver.FixedLengthOutputStream.remaining:J
lconst_0
lcmp
ifne 3
iconst_1
goto 4
StackMap locals:
StackMap stack: sun.net.httpserver.FixedLengthOutputStream
3: iconst_0
StackMap locals: sun.net.httpserver.FixedLengthOutputStream byte[] int int
StackMap stack: sun.net.httpserver.FixedLengthOutputStream int
4: putfield sun.net.httpserver.FixedLengthOutputStream.eof:Z
5: aload 0
getfield sun.net.httpserver.FixedLengthOutputStream.eof:Z
ifeq 7
6: new sun.net.httpserver.StreamClosedException
dup
invokespecial sun.net.httpserver.StreamClosedException.<init>:()V
athrow
7: StackMap locals:
StackMap stack:
iload 3
i2l
aload 0
getfield sun.net.httpserver.FixedLengthOutputStream.remaining:J
lcmp
ifle 9
8: new java.io.IOException
dup
ldc "too many bytes to write to stream"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
9: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.httpserver.FixedLengthOutputStream.out:Ljava/io/OutputStream;
aload 1
iload 2
iload 3
invokevirtual java.io.OutputStream.write:([BII)V
10: aload 0
dup
getfield sun.net.httpserver.FixedLengthOutputStream.remaining:J
iload 3
i2l
lsub
putfield sun.net.httpserver.FixedLengthOutputStream.remaining:J
11: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lsun/net/httpserver/FixedLengthOutputStream;
0 12 1 b [B
0 12 2 off I
0 12 3 len I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
off
len
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: aload 0
getfield sun.net.httpserver.FixedLengthOutputStream.closed:Z
ifeq 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield sun.net.httpserver.FixedLengthOutputStream.closed:Z
3: aload 0
getfield sun.net.httpserver.FixedLengthOutputStream.remaining:J
lconst_0
lcmp
ifle 6
4: aload 0
getfield sun.net.httpserver.FixedLengthOutputStream.t:Lsun/net/httpserver/ExchangeImpl;
invokevirtual sun.net.httpserver.ExchangeImpl.close:()V
5: new java.io.IOException
dup
ldc "insufficient bytes written to stream"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.net.httpserver.FixedLengthOutputStream.flush:()V
7: aload 0
iconst_1
putfield sun.net.httpserver.FixedLengthOutputStream.eof:Z
8: aload 0
getfield sun.net.httpserver.FixedLengthOutputStream.t:Lsun/net/httpserver/ExchangeImpl;
invokevirtual sun.net.httpserver.ExchangeImpl.getOriginalInputStream:()Lsun/net/httpserver/LeftOverInputStream;
astore 1
start local 1 9: aload 1
invokevirtual sun.net.httpserver.LeftOverInputStream.isClosed:()Z
ifne 13
10: aload 1
invokevirtual sun.net.httpserver.LeftOverInputStream.close:()V
11: goto 13
StackMap locals: sun.net.httpserver.FixedLengthOutputStream sun.net.httpserver.LeftOverInputStream
StackMap stack: java.io.IOException
12: pop
13: StackMap locals:
StackMap stack:
new sun.net.httpserver.WriteFinishedEvent
dup
aload 0
getfield sun.net.httpserver.FixedLengthOutputStream.t:Lsun/net/httpserver/ExchangeImpl;
invokespecial sun.net.httpserver.WriteFinishedEvent.<init>:(Lsun/net/httpserver/ExchangeImpl;)V
astore 2
start local 2 14: aload 0
getfield sun.net.httpserver.FixedLengthOutputStream.t:Lsun/net/httpserver/ExchangeImpl;
invokevirtual sun.net.httpserver.ExchangeImpl.getHttpContext:()Lsun/net/httpserver/HttpContextImpl;
invokevirtual sun.net.httpserver.HttpContextImpl.getServerImpl:()Lsun/net/httpserver/ServerImpl;
aload 2
invokevirtual sun.net.httpserver.ServerImpl.addEvent:(Lsun/net/httpserver/Event;)V
15: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lsun/net/httpserver/FixedLengthOutputStream;
9 16 1 is Lsun/net/httpserver/LeftOverInputStream;
14 16 2 e Lsun/net/httpserver/WriteFinishedEvent;
Exception table:
from to target type
10 11 12 Class java.io.IOException
Exceptions:
throws java.io.IOException
}
SourceFile: "FixedLengthOutputStream.java"