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)
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 final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lsun/net/httpserver/Request;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic sun.net.httpserver.Request$WriteStream.$assertionsDisabled:Z
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=2, 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: getstatic sun.net.httpserver.Request$WriteStream.$assertionsDisabled:Z
ifne 4
aload 2
invokevirtual java.nio.channels.SocketChannel.isBlocking:()Z
ifne 4
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
4: StackMap locals: sun.net.httpserver.Request$WriteStream sun.net.httpserver.ServerImpl java.nio.channels.SocketChannel
StackMap stack:
aload 0
iconst_0
putfield sun.net.httpserver.Request$WriteStream.closed:Z
5: aload 0
iconst_1
newarray 8
putfield sun.net.httpserver.Request$WriteStream.one:[B
6: aload 0
sipush 4096
invokestatic java.nio.ByteBuffer.allocate:(I)Ljava/nio/ByteBuffer;
putfield sun.net.httpserver.Request$WriteStream.buf:Ljava/nio/ByteBuffer;
7: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/net/httpserver/Request$WriteStream;
0 8 1 server Lsun/net/httpserver/ServerImpl;
0 8 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/ByteBuffer;
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/ByteBuffer;
pop
10: goto 14
start local 6 11: StackMap locals: int
StackMap stack:
iload 4
iload 6
isub
istore 4
12: iload 4
ifne 14
13: return
end local 6 14: 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 15: iload 4
if_icmplt 11
16: 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 17 0 this Lsun/net/httpserver/Request$WriteStream;
0 17 1 b [B
0 17 2 off I
0 17 3 len I
1 17 4 l I
4 17 5 cap I
6 7 6 diff I
11 14 6 n I
15 17 6 n I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
off
len
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
iconst_1
putfield sun.net.httpserver.Request$WriteStream.closed:Z
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 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