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)
java.nio.ByteBuffer chanbuf;
descriptor: Ljava/nio/ByteBuffer;
flags: (0x0000)
byte[] one;
descriptor: [B
flags: (0x0000)
private boolean closed;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private boolean eof;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
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 final int BUFSIZE;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 8192
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$ReadStream.$assertionsDisabled:Z
3: 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
sipush 8192
invokestatic java.nio.ByteBuffer.allocate:(I)Ljava/nio/ByteBuffer;
putfield sun.net.httpserver.Request$ReadStream.chanbuf:Ljava/nio/ByteBuffer;
5: aload 0
getfield sun.net.httpserver.Request$ReadStream.chanbuf:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.clear:()Ljava/nio/ByteBuffer;
pop
6: aload 0
iconst_1
newarray 8
putfield sun.net.httpserver.Request$ReadStream.one:[B
7: 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
8: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/net/httpserver/Request$ReadStream;
0 9 1 server Lsun/net/httpserver/ServerImpl;
0 9 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:
getstatic sun.net.httpserver.Request$ReadStream.$assertionsDisabled:Z
ifne 5
aload 0
getfield sun.net.httpserver.Request$ReadStream.channel:Ljava/nio/channels/SocketChannel;
invokevirtual java.nio.channels.SocketChannel.isBlocking:()Z
ifne 5
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
5: StackMap locals:
StackMap stack:
iload 2
iflt 6
iload 3
iflt 6
iload 3
aload 1
arraylength
iload 2
isub
if_icmple 7
6: StackMap locals:
StackMap stack:
new java.lang.IndexOutOfBoundsException
dup
invokespecial java.lang.IndexOutOfBoundsException.<init>:()V
athrow
7: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.httpserver.Request$ReadStream.reset:Z
ifeq 16
8: aload 0
getfield sun.net.httpserver.Request$ReadStream.markBuf:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.remaining:()I
istore 4
start local 4 9: iload 4
iload 3
if_icmple 10
iload 3
goto 11
StackMap locals: int
StackMap stack:
10: iload 4
StackMap locals:
StackMap stack: int
11: istore 5
start local 5 12: 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
13: iload 4
iload 5
if_icmpne 31
14: aload 0
iconst_0
putfield sun.net.httpserver.Request$ReadStream.reset:Z
15: goto 31
end local 5 end local 4 16: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.httpserver.Request$ReadStream.chanbuf:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.clear:()Ljava/nio/ByteBuffer;
pop
17: iload 3
sipush 8192
if_icmpge 19
18: aload 0
getfield sun.net.httpserver.Request$ReadStream.chanbuf:Ljava/nio/ByteBuffer;
iload 3
invokevirtual java.nio.ByteBuffer.limit:(I)Ljava/nio/ByteBuffer;
pop
19: StackMap locals:
StackMap stack:
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
istore 5
start local 5 20: iload 5
ifeq 19
21: iload 5
iconst_m1
if_icmpne 24
22: aload 0
iconst_1
putfield sun.net.httpserver.Request$ReadStream.eof:Z
23: iconst_m1
ireturn
24: StackMap locals: sun.net.httpserver.Request$ReadStream byte[] int int top int
StackMap stack:
aload 0
getfield sun.net.httpserver.Request$ReadStream.chanbuf:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.flip:()Ljava/nio/ByteBuffer;
pop
25: 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
26: aload 0
getfield sun.net.httpserver.Request$ReadStream.marked:Z
ifeq 31
27: 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
28: goto 31
StackMap locals:
StackMap stack: java.nio.BufferOverflowException
29: pop
30: aload 0
iconst_0
putfield sun.net.httpserver.Request$ReadStream.marked:Z
31: StackMap locals:
StackMap stack:
iload 5
ireturn
end local 5 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 32 0 this Lsun/net/httpserver/Request$ReadStream;
0 32 1 b [B
0 32 2 off I
0 32 3 srclen I
9 16 4 canreturn I
12 16 5 willreturn I
20 32 5 willreturn I
Exception table:
from to target type
27 28 29 Class java.nio.BufferOverflowException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
off
srclen
public boolean markSupported();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/net/httpserver/Request$ReadStream;
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.chanbuf:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.remaining:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/net/httpserver/Request$ReadStream;
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
iconst_1
putfield sun.net.httpserver.Request$ReadStream.closed:Z
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 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/ByteBuffer;
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