class sun.net.httpserver.Request$WriteStream extends java.io.OutputStream
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.net.httpserver.Request$WriteStream
super_class: java.io.OutputStream
{
java.nio.channels.SocketChannel channel;
descriptor: Ljava/nio/channels/SocketChannel;
flags: (0x0000)
java.nio.ByteBuffer buf;
descriptor: Ljava/nio/ByteBuffer;
flags: (0x0000)
java.nio.channels.SelectionKey key;
descriptor: Ljava/nio/channels/SelectionKey;
flags: (0x0000)
sun.net.httpserver.SelectorCache sc;
descriptor: Lsun/net/httpserver/SelectorCache;
flags: (0x0000)
java.nio.channels.Selector selector;
descriptor: Ljava/nio/channels/Selector;
flags: (0x0000)
boolean closed;
descriptor: Z
flags: (0x0000)
byte[] one;
descriptor: [B
flags: (0x0000)
sun.net.httpserver.ServerImpl server;
descriptor: Lsun/net/httpserver/ServerImpl;
flags: (0x0000)
static long writeTimeout;
descriptor: J
flags: (0x0008) ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: invokestatic sun.net.httpserver.ServerConfig.getWriteTimeout:()J
putstatic sun.net.httpserver.Request$WriteStream.writeTimeout:J
1: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(sun.net.httpserver.ServerImpl, java.nio.channels.SocketChannel);
descriptor: (Lsun/net/httpserver/ServerImpl;Ljava/nio/channels/SocketChannel;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.io.OutputStream.<init>:()V
1: aload 0
aload 2
putfield sun.net.httpserver.Request$WriteStream.channel:Ljava/nio/channels/SocketChannel;
2: aload 0
aload 1
putfield sun.net.httpserver.Request$WriteStream.server:Lsun/net/httpserver/ServerImpl;
3: aload 0
invokestatic sun.net.httpserver.SelectorCache.getSelectorCache:()Lsun/net/httpserver/SelectorCache;
putfield sun.net.httpserver.Request$WriteStream.sc:Lsun/net/httpserver/SelectorCache;
4: aload 0
aload 0
getfield sun.net.httpserver.Request$WriteStream.sc:Lsun/net/httpserver/SelectorCache;
invokevirtual sun.net.httpserver.SelectorCache.getSelector:()Ljava/nio/channels/Selector;
putfield sun.net.httpserver.Request$WriteStream.selector:Ljava/nio/channels/Selector;
5: aload 0
aload 2
aload 0
getfield sun.net.httpserver.Request$WriteStream.selector:Ljava/nio/channels/Selector;
iconst_4
invokevirtual java.nio.channels.SocketChannel.register:(Ljava/nio/channels/Selector;I)Ljava/nio/channels/SelectionKey;
putfield sun.net.httpserver.Request$WriteStream.key:Ljava/nio/channels/SelectionKey;
6: aload 0
iconst_0
putfield sun.net.httpserver.Request$WriteStream.closed:Z
7: aload 0
iconst_1
newarray 8
putfield sun.net.httpserver.Request$WriteStream.one:[B
8: aload 0
sipush 4096
invokestatic java.nio.ByteBuffer.allocate:(I)Ljava/nio/ByteBuffer;
putfield sun.net.httpserver.Request$WriteStream.buf:Ljava/nio/ByteBuffer;
9: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lsun/net/httpserver/Request$WriteStream;
0 10 1 server Lsun/net/httpserver/ServerImpl;
0 10 2 channel Ljava/nio/channels/SocketChannel;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
server
channel
public synchronized void write(int);
descriptor: (I)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.net.httpserver.Request$WriteStream.one:[B
iconst_0
iload 1
i2b
bastore
1: aload 0
aload 0
getfield sun.net.httpserver.Request$WriteStream.one:[B
iconst_0
iconst_1
invokevirtual sun.net.httpserver.Request$WriteStream.write:([BII)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/net/httpserver/Request$WriteStream;
0 3 1 b I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
public synchronized void write(byte[]);
descriptor: ([B)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_0
aload 1
arraylength
invokevirtual sun.net.httpserver.Request$WriteStream.write:([BII)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/net/httpserver/Request$WriteStream;
0 2 1 b [B
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
public synchronized void write(byte[], int, int);
descriptor: ([BII)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 3
istore 4
start local 4 1: aload 0
getfield sun.net.httpserver.Request$WriteStream.closed:Z
ifeq 3
2: new java.io.IOException
dup
ldc "stream is closed"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: int
StackMap stack:
aload 0
getfield sun.net.httpserver.Request$WriteStream.buf:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.capacity:()I
istore 5
start local 5 4: iload 5
iload 3
if_icmpge 7
5: iload 3
iload 5
isub
istore 6
start local 6 6: aload 0
iconst_2
iload 5
iload 6
iadd
imul
invokestatic java.nio.ByteBuffer.allocate:(I)Ljava/nio/ByteBuffer;
putfield sun.net.httpserver.Request$WriteStream.buf:Ljava/nio/ByteBuffer;
end local 6 7: StackMap locals: int
StackMap stack:
aload 0
getfield sun.net.httpserver.Request$WriteStream.buf:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.clear:()Ljava/nio/Buffer;
pop
8: aload 0
getfield sun.net.httpserver.Request$WriteStream.buf:Ljava/nio/ByteBuffer;
aload 1
iload 2
iload 3
invokevirtual java.nio.ByteBuffer.put:([BII)Ljava/nio/ByteBuffer;
pop
9: aload 0
getfield sun.net.httpserver.Request$WriteStream.buf:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.flip:()Ljava/nio/Buffer;
pop
10: goto 15
start local 6 11: StackMap locals: int
StackMap stack:
iload 4
iload 6
isub
istore 4
12: iload 4
ifne 14
13: return
14: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.net.httpserver.Request$WriteStream.block:()V
end local 6 15: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.httpserver.Request$WriteStream.channel:Ljava/nio/channels/SocketChannel;
aload 0
getfield sun.net.httpserver.Request$WriteStream.buf:Ljava/nio/ByteBuffer;
invokevirtual java.nio.channels.SocketChannel.write:(Ljava/nio/ByteBuffer;)I
dup
istore 6
start local 6 16: iload 4
if_icmplt 11
17: 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 18 0 this Lsun/net/httpserver/Request$WriteStream;
0 18 1 b [B
0 18 2 off I
0 18 3 len I
1 18 4 l I
4 18 5 cap I
6 7 6 diff I
11 15 6 n I
16 18 6 n I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
off
len
void block();
descriptor: ()V
flags: (0x0000)
Code:
stack=4, locals=5, args_size=1
start local 0 0: aload 0
getfield sun.net.httpserver.Request$WriteStream.server:Lsun/net/httpserver/ServerImpl;
invokevirtual sun.net.httpserver.ServerImpl.getTime:()J
lstore 1
start local 1 1: lload 1
getstatic sun.net.httpserver.Request$WriteStream.writeTimeout:J
ladd
lstore 3
start local 3 2: goto 7
3: StackMap locals: long long
StackMap stack:
aload 0
getfield sun.net.httpserver.Request$WriteStream.selector:Ljava/nio/channels/Selector;
getstatic sun.net.httpserver.Request$WriteStream.writeTimeout:J
invokevirtual java.nio.channels.Selector.select:(J)I
iconst_1
if_icmpne 6
4: aload 0
getfield sun.net.httpserver.Request$WriteStream.selector:Ljava/nio/channels/Selector;
invokevirtual java.nio.channels.Selector.selectedKeys:()Ljava/util/Set;
invokeinterface java.util.Set.clear:()V
5: return
6: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.httpserver.Request$WriteStream.server:Lsun/net/httpserver/ServerImpl;
invokevirtual sun.net.httpserver.ServerImpl.getTime:()J
lstore 1
7: StackMap locals:
StackMap stack:
lload 1
lload 3
lcmp
iflt 3
8: new java.net.SocketTimeoutException
dup
ldc "write blocked too long"
invokespecial java.net.SocketTimeoutException.<init>:(Ljava/lang/String;)V
athrow
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/net/httpserver/Request$WriteStream;
1 9 1 currtime J
2 9 3 maxtime J
Exceptions:
throws java.io.IOException
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.net.httpserver.Request$WriteStream.closed:Z
ifeq 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.httpserver.Request$WriteStream.channel:Ljava/nio/channels/SocketChannel;
invokevirtual java.nio.channels.SocketChannel.close:()V
3: aload 0
getfield sun.net.httpserver.Request$WriteStream.selector:Ljava/nio/channels/Selector;
invokevirtual java.nio.channels.Selector.selectNow:()I
pop
4: aload 0
getfield sun.net.httpserver.Request$WriteStream.sc:Lsun/net/httpserver/SelectorCache;
aload 0
getfield sun.net.httpserver.Request$WriteStream.selector:Ljava/nio/channels/Selector;
invokevirtual sun.net.httpserver.SelectorCache.freeSelector:(Ljava/nio/channels/Selector;)V
5: aload 0
iconst_1
putfield sun.net.httpserver.Request$WriteStream.closed:Z
6: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/net/httpserver/Request$WriteStream;
Exceptions:
throws java.io.IOException
}
SourceFile: "Request.java"
NestHost: sun.net.httpserver.Request
InnerClasses:
WriteStream = sun.net.httpserver.Request$WriteStream of sun.net.httpserver.Request