class sun.net.httpserver.Request$ReadStream extends java.io.InputStream
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.net.httpserver.Request$ReadStream
super_class: java.io.InputStream
{
java.nio.channels.SocketChannel channel;
descriptor: Ljava/nio/channels/SocketChannel;
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)
java.nio.ByteBuffer chanbuf;
descriptor: Ljava/nio/ByteBuffer;
flags: (0x0000)
java.nio.channels.SelectionKey key;
descriptor: Ljava/nio/channels/SelectionKey;
flags: (0x0000)
int available;
descriptor: I
flags: (0x0000)
byte[] one;
descriptor: [B
flags: (0x0000)
boolean closed;
descriptor: Z
flags: (0x0000)
boolean eof;
descriptor: Z
flags: (0x0000)
java.nio.ByteBuffer markBuf;
descriptor: Ljava/nio/ByteBuffer;
flags: (0x0000)
boolean marked;
descriptor: Z
flags: (0x0000)
boolean reset;
descriptor: Z
flags: (0x0000)
int readlimit;
descriptor: I
flags: (0x0000)
static long readTimeout;
descriptor: J
flags: (0x0008) ACC_STATIC
sun.net.httpserver.ServerImpl server;
descriptor: Lsun/net/httpserver/ServerImpl;
flags: (0x0000)
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: invokestatic sun.net.httpserver.ServerConfig.getReadTimeout:()J
putstatic sun.net.httpserver.Request$ReadStream.readTimeout: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=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.io.InputStream.<init>:()V
1: aload 0
iconst_0
putfield sun.net.httpserver.Request$ReadStream.closed:Z
aload 0
iconst_0
putfield sun.net.httpserver.Request$ReadStream.eof:Z
2: aload 0
aload 2
putfield sun.net.httpserver.Request$ReadStream.channel:Ljava/nio/channels/SocketChannel;
3: aload 0
aload 1
putfield sun.net.httpserver.Request$ReadStream.server:Lsun/net/httpserver/ServerImpl;
4: aload 0
invokestatic sun.net.httpserver.SelectorCache.getSelectorCache:()Lsun/net/httpserver/SelectorCache;
putfield sun.net.httpserver.Request$ReadStream.sc:Lsun/net/httpserver/SelectorCache;
5: aload 0
aload 0
getfield sun.net.httpserver.Request$ReadStream.sc:Lsun/net/httpserver/SelectorCache;
invokevirtual sun.net.httpserver.SelectorCache.getSelector:()Ljava/nio/channels/Selector;
putfield sun.net.httpserver.Request$ReadStream.selector:Ljava/nio/channels/Selector;
6: aload 0
sipush 8192
invokestatic java.nio.ByteBuffer.allocate:(I)Ljava/nio/ByteBuffer;
putfield sun.net.httpserver.Request$ReadStream.chanbuf:Ljava/nio/ByteBuffer;
7: aload 0
aload 2
aload 0
getfield sun.net.httpserver.Request$ReadStream.selector:Ljava/nio/channels/Selector;
iconst_1
invokevirtual java.nio.channels.SocketChannel.register:(Ljava/nio/channels/Selector;I)Ljava/nio/channels/SelectionKey;
putfield sun.net.httpserver.Request$ReadStream.key:Ljava/nio/channels/SelectionKey;
8: aload 0
iconst_0
putfield sun.net.httpserver.Request$ReadStream.available:I
9: aload 0
iconst_1
newarray 8
putfield sun.net.httpserver.Request$ReadStream.one:[B
10: aload 0
aload 0
aload 0
iconst_0
dup_x1
putfield sun.net.httpserver.Request$ReadStream.reset:Z
dup_x1
putfield sun.net.httpserver.Request$ReadStream.marked:Z
putfield sun.net.httpserver.Request$ReadStream.closed:Z
11: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lsun/net/httpserver/Request$ReadStream;
0 12 1 server Lsun/net/httpserver/ServerImpl;
0 12 2 chan Ljava/nio/channels/SocketChannel;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
server
chan
public synchronized int read(byte[]);
descriptor: ([B)I
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$ReadStream.read:([BII)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/net/httpserver/Request$ReadStream;
0 1 1 b [B
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
public synchronized int read();
descriptor: ()I
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
aload 0
getfield sun.net.httpserver.Request$ReadStream.one:[B
iconst_0
iconst_1
invokevirtual sun.net.httpserver.Request$ReadStream.read:([BII)I
istore 1
start local 1 1: iload 1
iconst_1
if_icmpne 3
2: aload 0
getfield sun.net.httpserver.Request$ReadStream.one:[B
iconst_0
baload
sipush 255
iand
ireturn
3: StackMap locals: int
StackMap stack:
iconst_m1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/net/httpserver/Request$ReadStream;
1 4 1 result I
Exceptions:
throws java.io.IOException
public synchronized int read(byte[], int, int);
descriptor: ([BII)I
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield sun.net.httpserver.Request$ReadStream.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
getfield sun.net.httpserver.Request$ReadStream.eof:Z
ifeq 4
3: iconst_m1
ireturn
4: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.httpserver.Request$ReadStream.reset:Z
ifeq 13
5: aload 0
getfield sun.net.httpserver.Request$ReadStream.markBuf:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.remaining:()I
istore 4
start local 4 6: iload 4
iload 3
if_icmple 7
iload 3
goto 8
StackMap locals: int
StackMap stack:
7: iload 4
StackMap locals:
StackMap stack: int
8: istore 5
start local 5 9: aload 0
getfield sun.net.httpserver.Request$ReadStream.markBuf:Ljava/nio/ByteBuffer;
aload 1
iload 2
iload 5
invokevirtual java.nio.ByteBuffer.get:([BII)Ljava/nio/ByteBuffer;
pop
10: iload 4
iload 5
if_icmpne 30
11: aload 0
iconst_0
putfield sun.net.httpserver.Request$ReadStream.reset:Z
12: goto 30
end local 5 end local 4 13: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.net.httpserver.Request$ReadStream.available:()I
istore 4
start local 4 14: goto 17
15: StackMap locals: int
StackMap stack:
aload 0
invokevirtual sun.net.httpserver.Request$ReadStream.block:()V
16: aload 0
invokevirtual sun.net.httpserver.Request$ReadStream.available:()I
istore 4
17: StackMap locals:
StackMap stack:
iload 4
ifne 18
aload 0
getfield sun.net.httpserver.Request$ReadStream.eof:Z
ifeq 15
18: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.httpserver.Request$ReadStream.eof:Z
ifeq 20
19: iconst_m1
ireturn
20: StackMap locals:
StackMap stack:
iload 4
iload 3
if_icmple 21
iload 3
goto 22
StackMap locals:
StackMap stack:
21: iload 4
StackMap locals:
StackMap stack: int
22: istore 5
start local 5 23: aload 0
getfield sun.net.httpserver.Request$ReadStream.chanbuf:Ljava/nio/ByteBuffer;
aload 1
iload 2
iload 5
invokevirtual java.nio.ByteBuffer.get:([BII)Ljava/nio/ByteBuffer;
pop
24: aload 0
dup
getfield sun.net.httpserver.Request$ReadStream.available:I
iload 5
isub
putfield sun.net.httpserver.Request$ReadStream.available:I
25: aload 0
getfield sun.net.httpserver.Request$ReadStream.marked:Z
ifeq 30
26: aload 0
getfield sun.net.httpserver.Request$ReadStream.markBuf:Ljava/nio/ByteBuffer;
aload 1
iload 2
iload 5
invokevirtual java.nio.ByteBuffer.put:([BII)Ljava/nio/ByteBuffer;
pop
27: goto 30
StackMap locals: sun.net.httpserver.Request$ReadStream byte[] int int int int
StackMap stack: java.nio.BufferOverflowException
28: pop
29: aload 0
iconst_0
putfield sun.net.httpserver.Request$ReadStream.marked:Z
30: StackMap locals:
StackMap stack:
iload 5
ireturn
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 31 0 this Lsun/net/httpserver/Request$ReadStream;
0 31 1 b [B
0 31 2 off I
0 31 3 srclen I
6 13 4 canreturn I
14 31 4 canreturn I
9 13 5 willreturn I
23 31 5 willreturn I
Exception table:
from to target type
26 27 28 Class java.nio.BufferOverflowException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
off
srclen
public synchronized int available();
descriptor: ()I
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.net.httpserver.Request$ReadStream.closed:Z
ifeq 2
1: new java.io.IOException
dup
ldc "Stream is closed"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.httpserver.Request$ReadStream.eof:Z
ifeq 4
3: iconst_m1
ireturn
4: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.httpserver.Request$ReadStream.reset:Z
ifeq 6
5: aload 0
getfield sun.net.httpserver.Request$ReadStream.markBuf:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.remaining:()I
ireturn
6: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.httpserver.Request$ReadStream.available:I
ifle 8
7: aload 0
getfield sun.net.httpserver.Request$ReadStream.available:I
ireturn
8: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.httpserver.Request$ReadStream.chanbuf:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.clear:()Ljava/nio/Buffer;
pop
9: aload 0
aload 0
getfield sun.net.httpserver.Request$ReadStream.channel:Ljava/nio/channels/SocketChannel;
aload 0
getfield sun.net.httpserver.Request$ReadStream.chanbuf:Ljava/nio/ByteBuffer;
invokevirtual java.nio.channels.SocketChannel.read:(Ljava/nio/ByteBuffer;)I
putfield sun.net.httpserver.Request$ReadStream.available:I
10: aload 0
getfield sun.net.httpserver.Request$ReadStream.available:I
ifle 13
11: aload 0
getfield sun.net.httpserver.Request$ReadStream.chanbuf:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.flip:()Ljava/nio/Buffer;
pop
12: goto 16
StackMap locals:
StackMap stack:
13: aload 0
getfield sun.net.httpserver.Request$ReadStream.available:I
iconst_m1
if_icmpne 16
14: aload 0
iconst_1
putfield sun.net.httpserver.Request$ReadStream.eof:Z
15: aload 0
iconst_0
putfield sun.net.httpserver.Request$ReadStream.available:I
16: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.httpserver.Request$ReadStream.available:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lsun/net/httpserver/Request$ReadStream;
Exceptions:
throws java.io.IOException
private synchronized void block();
descriptor: ()V
flags: (0x0022) ACC_PRIVATE, ACC_SYNCHRONIZED
Code:
stack=4, locals=5, args_size=1
start local 0 0: aload 0
getfield sun.net.httpserver.Request$ReadStream.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$ReadStream.readTimeout:J
ladd
lstore 3
start local 3 2: goto 8
3: StackMap locals: long long
StackMap stack:
aload 0
getfield sun.net.httpserver.Request$ReadStream.selector:Ljava/nio/channels/Selector;
getstatic sun.net.httpserver.Request$ReadStream.readTimeout:J
invokevirtual java.nio.channels.Selector.select:(J)I
iconst_1
if_icmpne 7
4: aload 0
getfield sun.net.httpserver.Request$ReadStream.selector:Ljava/nio/channels/Selector;
invokevirtual java.nio.channels.Selector.selectedKeys:()Ljava/util/Set;
invokeinterface java.util.Set.clear:()V
5: aload 0
invokevirtual sun.net.httpserver.Request$ReadStream.available:()I
pop
6: return
7: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.httpserver.Request$ReadStream.server:Lsun/net/httpserver/ServerImpl;
invokevirtual sun.net.httpserver.ServerImpl.getTime:()J
lstore 1
8: StackMap locals:
StackMap stack:
lload 1
lload 3
lcmp
iflt 3
9: new java.net.SocketTimeoutException
dup
ldc "no data received"
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 10 0 this Lsun/net/httpserver/Request$ReadStream;
1 10 1 currtime J
2 10 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$ReadStream.closed:Z
ifeq 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.httpserver.Request$ReadStream.channel:Ljava/nio/channels/SocketChannel;
invokevirtual java.nio.channels.SocketChannel.close:()V
3: aload 0
getfield sun.net.httpserver.Request$ReadStream.selector:Ljava/nio/channels/Selector;
invokevirtual java.nio.channels.Selector.selectNow:()I
pop
4: aload 0
getfield sun.net.httpserver.Request$ReadStream.sc:Lsun/net/httpserver/SelectorCache;
aload 0
getfield sun.net.httpserver.Request$ReadStream.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$ReadStream.closed:Z
6: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/net/httpserver/Request$ReadStream;
Exceptions:
throws java.io.IOException
public synchronized void mark(int);
descriptor: (I)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.net.httpserver.Request$ReadStream.closed:Z
ifeq 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
iload 1
putfield sun.net.httpserver.Request$ReadStream.readlimit:I
3: aload 0
iload 1
invokestatic java.nio.ByteBuffer.allocate:(I)Ljava/nio/ByteBuffer;
putfield sun.net.httpserver.Request$ReadStream.markBuf:Ljava/nio/ByteBuffer;
4: aload 0
iconst_1
putfield sun.net.httpserver.Request$ReadStream.marked:Z
5: aload 0
iconst_0
putfield sun.net.httpserver.Request$ReadStream.reset:Z
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/net/httpserver/Request$ReadStream;
0 7 1 readlimit I
MethodParameters:
Name Flags
readlimit
public synchronized void reset();
descriptor: ()V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.net.httpserver.Request$ReadStream.closed:Z
ifeq 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.httpserver.Request$ReadStream.marked:Z
ifne 4
3: new java.io.IOException
dup
ldc "Stream not marked"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
iconst_0
putfield sun.net.httpserver.Request$ReadStream.marked:Z
5: aload 0
iconst_1
putfield sun.net.httpserver.Request$ReadStream.reset:Z
6: aload 0
getfield sun.net.httpserver.Request$ReadStream.markBuf:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.flip:()Ljava/nio/Buffer;
pop
7: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/net/httpserver/Request$ReadStream;
Exceptions:
throws java.io.IOException
}
SourceFile: "Request.java"
NestHost: sun.net.httpserver.Request
InnerClasses:
ReadStream = sun.net.httpserver.Request$ReadStream of sun.net.httpserver.Request