public class org.glassfish.grizzly.servlet.ServletInputStreamImpl extends jakarta.servlet.ServletInputStream
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.glassfish.grizzly.servlet.ServletInputStreamImpl
super_class: jakarta.servlet.ServletInputStream
{
private final org.glassfish.grizzly.servlet.HttpServletRequestImpl servletRequest;
descriptor: Lorg/glassfish/grizzly/servlet/HttpServletRequestImpl;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private org.glassfish.grizzly.http.io.NIOInputStream inputStream;
descriptor: Lorg/glassfish/grizzly/http/io/NIOInputStream;
flags: (0x0002) ACC_PRIVATE
private org.glassfish.grizzly.ReadHandler readHandler;
descriptor: Lorg/glassfish/grizzly/ReadHandler;
flags: (0x0002) ACC_PRIVATE
private boolean hasSetReadListener;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private boolean prevIsReady;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private static final java.lang.ThreadLocal<java.lang.Boolean> IS_READY_SCOPE;
descriptor: Ljava/lang/ThreadLocal;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/lang/ThreadLocal<Ljava/lang/Boolean;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new java.lang.ThreadLocal
dup
invokespecial java.lang.ThreadLocal.<init>:()V
putstatic org.glassfish.grizzly.servlet.ServletInputStreamImpl.IS_READY_SCOPE:Ljava/lang/ThreadLocal;
return
LocalVariableTable:
Start End Slot Name Signature
protected void <init>(org.glassfish.grizzly.servlet.HttpServletRequestImpl);
descriptor: (Lorg/glassfish/grizzly/servlet/HttpServletRequestImpl;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial jakarta.servlet.ServletInputStream.<init>:()V
1: aload 0
aconst_null
putfield org.glassfish.grizzly.servlet.ServletInputStreamImpl.readHandler:Lorg/glassfish/grizzly/ReadHandler;
2: aload 0
iconst_0
putfield org.glassfish.grizzly.servlet.ServletInputStreamImpl.hasSetReadListener:Z
3: aload 0
iconst_1
putfield org.glassfish.grizzly.servlet.ServletInputStreamImpl.prevIsReady:Z
4: aload 0
aload 1
putfield org.glassfish.grizzly.servlet.ServletInputStreamImpl.servletRequest:Lorg/glassfish/grizzly/servlet/HttpServletRequestImpl;
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/glassfish/grizzly/servlet/ServletInputStreamImpl;
0 6 1 servletRequest Lorg/glassfish/grizzly/servlet/HttpServletRequestImpl;
MethodParameters:
Name Flags
servletRequest final
public void initialize();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aload 0
getfield org.glassfish.grizzly.servlet.ServletInputStreamImpl.servletRequest:Lorg/glassfish/grizzly/servlet/HttpServletRequestImpl;
invokevirtual org.glassfish.grizzly.servlet.HttpServletRequestImpl.getRequest:()Lorg/glassfish/grizzly/http/server/Request;
invokevirtual org.glassfish.grizzly.http.server.Request.createInputStream:()Lorg/glassfish/grizzly/http/io/NIOInputStream;
putfield org.glassfish.grizzly.servlet.ServletInputStreamImpl.inputStream:Lorg/glassfish/grizzly/http/io/NIOInputStream;
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/servlet/ServletInputStreamImpl;
Exceptions:
throws java.io.IOException
public int read();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.servlet.ServletInputStreamImpl.prevIsReady:Z
ifne 2
1: new java.lang.IllegalStateException
dup
invokestatic org.glassfish.grizzly.localization.LogMessages.WARNING_GRIZZLY_HTTP_SERVLET_NON_BLOCKING_ERROR:()Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.servlet.ServletInputStreamImpl.inputStream:Lorg/glassfish/grizzly/http/io/NIOInputStream;
invokevirtual org.glassfish.grizzly.http.io.NIOInputStream.read:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/glassfish/grizzly/servlet/ServletInputStreamImpl;
Exceptions:
throws java.io.IOException
public int available();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.servlet.ServletInputStreamImpl.prevIsReady:Z
ifne 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.servlet.ServletInputStreamImpl.inputStream:Lorg/glassfish/grizzly/http/io/NIOInputStream;
invokevirtual org.glassfish.grizzly.http.io.NIOInputStream.available:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/glassfish/grizzly/servlet/ServletInputStreamImpl;
Exceptions:
throws java.io.IOException
public int read(byte[]);
descriptor: ([B)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.glassfish.grizzly.servlet.ServletInputStreamImpl.prevIsReady:Z
ifne 2
1: new java.lang.IllegalStateException
dup
invokestatic org.glassfish.grizzly.localization.LogMessages.WARNING_GRIZZLY_HTTP_SERVLET_NON_BLOCKING_ERROR:()Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.servlet.ServletInputStreamImpl.inputStream:Lorg/glassfish/grizzly/http/io/NIOInputStream;
aload 1
iconst_0
aload 1
arraylength
invokevirtual org.glassfish.grizzly.http.io.NIOInputStream.read:([BII)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/glassfish/grizzly/servlet/ServletInputStreamImpl;
0 3 1 b [B
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b final
public int read(byte[], int, int);
descriptor: ([BII)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield org.glassfish.grizzly.servlet.ServletInputStreamImpl.prevIsReady:Z
ifne 2
1: new java.lang.IllegalStateException
dup
invokestatic org.glassfish.grizzly.localization.LogMessages.WARNING_GRIZZLY_HTTP_SERVLET_NON_BLOCKING_ERROR:()Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.servlet.ServletInputStreamImpl.inputStream:Lorg/glassfish/grizzly/http/io/NIOInputStream;
aload 1
iload 2
iload 3
invokevirtual org.glassfish.grizzly.http.io.NIOInputStream.read:([BII)I
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/glassfish/grizzly/servlet/ServletInputStreamImpl;
0 3 1 b [B
0 3 2 off I
0 3 3 len I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b final
off final
len final
public long skip(long);
descriptor: (J)J
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.glassfish.grizzly.servlet.ServletInputStreamImpl.inputStream:Lorg/glassfish/grizzly/http/io/NIOInputStream;
lload 1
invokevirtual org.glassfish.grizzly.http.io.NIOInputStream.skip:(J)J
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/servlet/ServletInputStreamImpl;
0 1 1 n J
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
n final
public void mark(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.glassfish.grizzly.servlet.ServletInputStreamImpl.inputStream:Lorg/glassfish/grizzly/http/io/NIOInputStream;
iload 1
invokevirtual org.glassfish.grizzly.http.io.NIOInputStream.mark:(I)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/servlet/ServletInputStreamImpl;
0 2 1 readlimit I
MethodParameters:
Name Flags
readlimit final
public void reset();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.servlet.ServletInputStreamImpl.inputStream:Lorg/glassfish/grizzly/http/io/NIOInputStream;
invokevirtual org.glassfish.grizzly.http.io.NIOInputStream.reset:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/servlet/ServletInputStreamImpl;
Exceptions:
throws java.io.IOException
public boolean markSupported();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.servlet.ServletInputStreamImpl.inputStream:Lorg/glassfish/grizzly/http/io/NIOInputStream;
invokevirtual org.glassfish.grizzly.http.io.NIOInputStream.markSupported:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/servlet/ServletInputStreamImpl;
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.servlet.ServletInputStreamImpl.inputStream:Lorg/glassfish/grizzly/http/io/NIOInputStream;
invokevirtual org.glassfish.grizzly.http.io.NIOInputStream.close:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/servlet/ServletInputStreamImpl;
Exceptions:
throws java.io.IOException
void recycle();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aconst_null
putfield org.glassfish.grizzly.servlet.ServletInputStreamImpl.inputStream:Lorg/glassfish/grizzly/http/io/NIOInputStream;
1: aload 0
iconst_1
putfield org.glassfish.grizzly.servlet.ServletInputStreamImpl.prevIsReady:Z
2: aload 0
iconst_0
putfield org.glassfish.grizzly.servlet.ServletInputStreamImpl.hasSetReadListener:Z
3: aload 0
aconst_null
putfield org.glassfish.grizzly.servlet.ServletInputStreamImpl.readHandler:Lorg/glassfish/grizzly/ReadHandler;
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/glassfish/grizzly/servlet/ServletInputStreamImpl;
public boolean isFinished();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.servlet.ServletInputStreamImpl.inputStream:Lorg/glassfish/grizzly/http/io/NIOInputStream;
invokevirtual org.glassfish.grizzly.http.io.NIOInputStream.isFinished:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/servlet/ServletInputStreamImpl;
public boolean isReady();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.servlet.ServletInputStreamImpl.hasSetReadListener:Z
ifne 2
1: new java.lang.IllegalStateException
dup
invokestatic org.glassfish.grizzly.localization.LogMessages.WARNING_GRIZZLY_HTTP_SERVLET_INPUTSTREAM_ISREADY_ERROR:()Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.servlet.ServletInputStreamImpl.prevIsReady:Z
ifne 4
3: iconst_0
ireturn
4: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.servlet.ServletInputStreamImpl.inputStream:Lorg/glassfish/grizzly/http/io/NIOInputStream;
invokevirtual org.glassfish.grizzly.http.io.NIOInputStream.isReady:()Z
istore 1
start local 1 5: iload 1
ifne 17
6: aload 0
getfield org.glassfish.grizzly.servlet.ServletInputStreamImpl.hasSetReadListener:Z
ifeq 16
7: aload 0
iconst_0
putfield org.glassfish.grizzly.servlet.ServletInputStreamImpl.prevIsReady:Z
8: getstatic org.glassfish.grizzly.servlet.ServletInputStreamImpl.IS_READY_SCOPE:Ljava/lang/ThreadLocal;
getstatic java.lang.Boolean.TRUE:Ljava/lang/Boolean;
invokevirtual java.lang.ThreadLocal.set:(Ljava/lang/Object;)V
9: aload 0
getfield org.glassfish.grizzly.servlet.ServletInputStreamImpl.inputStream:Lorg/glassfish/grizzly/http/io/NIOInputStream;
aload 0
getfield org.glassfish.grizzly.servlet.ServletInputStreamImpl.readHandler:Lorg/glassfish/grizzly/ReadHandler;
invokevirtual org.glassfish.grizzly.http.io.NIOInputStream.notifyAvailable:(Lorg/glassfish/grizzly/ReadHandler;)V
10: goto 14
StackMap locals: org.glassfish.grizzly.servlet.ServletInputStreamImpl int
StackMap stack: java.lang.Throwable
11: astore 2
12: getstatic org.glassfish.grizzly.servlet.ServletInputStreamImpl.IS_READY_SCOPE:Ljava/lang/ThreadLocal;
invokevirtual java.lang.ThreadLocal.remove:()V
13: aload 2
athrow
14: StackMap locals:
StackMap stack:
getstatic org.glassfish.grizzly.servlet.ServletInputStreamImpl.IS_READY_SCOPE:Ljava/lang/ThreadLocal;
invokevirtual java.lang.ThreadLocal.remove:()V
15: goto 17
16: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield org.glassfish.grizzly.servlet.ServletInputStreamImpl.prevIsReady:Z
17: StackMap locals:
StackMap stack:
iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lorg/glassfish/grizzly/servlet/ServletInputStreamImpl;
5 18 1 result Z
Exception table:
from to target type
9 11 11 any
public void setReadListener(jakarta.servlet.ReadListener);
descriptor: (Ljakarta/servlet/ReadListener;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.glassfish.grizzly.servlet.ServletInputStreamImpl.hasSetReadListener:Z
ifeq 2
1: new java.lang.IllegalStateException
dup
ldc "The ReadListener has already been set"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.servlet.ServletInputStreamImpl.servletRequest:Lorg/glassfish/grizzly/servlet/HttpServletRequestImpl;
invokevirtual org.glassfish.grizzly.servlet.HttpServletRequestImpl.isAsyncStarted:()Z
ifne 4
aload 0
getfield org.glassfish.grizzly.servlet.ServletInputStreamImpl.servletRequest:Lorg/glassfish/grizzly/servlet/HttpServletRequestImpl;
invokevirtual org.glassfish.grizzly.servlet.HttpServletRequestImpl.isUpgrade:()Z
ifne 4
3: new java.lang.IllegalStateException
dup
invokestatic org.glassfish.grizzly.localization.LogMessages.WARNING_GRIZZLY_HTTP_SERVLET_INPUTSTREAM_SETREADLISTENER_ERROR:()Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
new org.glassfish.grizzly.servlet.ServletInputStreamImpl$ReadHandlerImpl
dup
aload 0
aload 1
invokespecial org.glassfish.grizzly.servlet.ServletInputStreamImpl$ReadHandlerImpl.<init>:(Lorg/glassfish/grizzly/servlet/ServletInputStreamImpl;Ljakarta/servlet/ReadListener;)V
putfield org.glassfish.grizzly.servlet.ServletInputStreamImpl.readHandler:Lorg/glassfish/grizzly/ReadHandler;
5: aload 0
iconst_1
putfield org.glassfish.grizzly.servlet.ServletInputStreamImpl.hasSetReadListener:Z
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/glassfish/grizzly/servlet/ServletInputStreamImpl;
0 7 1 readListener Ljakarta/servlet/ReadListener;
MethodParameters:
Name Flags
readListener final
}
SourceFile: "ServletInputStreamImpl.java"
NestMembers:
org.glassfish.grizzly.servlet.ServletInputStreamImpl$ReadHandlerImpl org.glassfish.grizzly.servlet.ServletInputStreamImpl$ReadHandlerImpl$1 org.glassfish.grizzly.servlet.ServletInputStreamImpl$ReadHandlerImpl$2 org.glassfish.grizzly.servlet.ServletInputStreamImpl$ReadHandlerImpl$3
InnerClasses:
ReadHandlerImpl = org.glassfish.grizzly.servlet.ServletInputStreamImpl$ReadHandlerImpl of org.glassfish.grizzly.servlet.ServletInputStreamImpl