public class io.netty.handler.codec.http.websocketx.WebSocket00FrameDecoder extends io.netty.handler.codec.ReplayingDecoder<java.lang.Void> implements io.netty.handler.codec.http.websocketx.WebSocketFrameDecoder
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.netty.handler.codec.http.websocketx.WebSocket00FrameDecoder
super_class: io.netty.handler.codec.ReplayingDecoder
{
static final int DEFAULT_MAX_FRAME_SIZE;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 16384
private final long maxFrameSize;
descriptor: J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private boolean receivedClosingHandshake;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
sipush 16384
invokespecial io.netty.handler.codec.http.websocketx.WebSocket00FrameDecoder.<init>:(I)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/handler/codec/http/websocketx/WebSocket00FrameDecoder;
public void <init>(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial io.netty.handler.codec.ReplayingDecoder.<init>:()V
1: aload 0
iload 1
i2l
putfield io.netty.handler.codec.http.websocketx.WebSocket00FrameDecoder.maxFrameSize:J
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/netty/handler/codec/http/websocketx/WebSocket00FrameDecoder;
0 3 1 maxFrameSize I
MethodParameters:
Name Flags
maxFrameSize
protected void decode(io.netty.channel.ChannelHandlerContext, io.netty.buffer.ByteBuf, java.util.List<java.lang.Object>);
descriptor: (Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Ljava/util/List;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield io.netty.handler.codec.http.websocketx.WebSocket00FrameDecoder.receivedClosingHandshake:Z
ifeq 3
1: aload 2
aload 0
invokevirtual io.netty.handler.codec.http.websocketx.WebSocket00FrameDecoder.actualReadableBytes:()I
invokevirtual io.netty.buffer.ByteBuf.skipBytes:(I)Lio/netty/buffer/ByteBuf;
pop
2: return
3: StackMap locals:
StackMap stack:
aload 2
invokevirtual io.netty.buffer.ByteBuf.readByte:()B
istore 4
start local 4 4: iload 4
sipush 128
iand
sipush 128
if_icmpne 7
5: aload 0
aload 1
iload 4
aload 2
invokevirtual io.netty.handler.codec.http.websocketx.WebSocket00FrameDecoder.decodeBinaryFrame:(Lio/netty/channel/ChannelHandlerContext;BLio/netty/buffer/ByteBuf;)Lio/netty/handler/codec/http/websocketx/WebSocketFrame;
astore 5
start local 5 6: goto 8
end local 5 7: StackMap locals: int
StackMap stack:
aload 0
aload 1
aload 2
invokevirtual io.netty.handler.codec.http.websocketx.WebSocket00FrameDecoder.decodeTextFrame:(Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;)Lio/netty/handler/codec/http/websocketx/WebSocketFrame;
astore 5
start local 5 8: StackMap locals: io.netty.handler.codec.http.websocketx.WebSocketFrame
StackMap stack:
aload 5
ifnull 10
9: aload 3
aload 5
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
10: StackMap locals:
StackMap stack:
return
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 11 0 this Lio/netty/handler/codec/http/websocketx/WebSocket00FrameDecoder;
0 11 1 ctx Lio/netty/channel/ChannelHandlerContext;
0 11 2 in Lio/netty/buffer/ByteBuf;
0 11 3 out Ljava/util/List<Ljava/lang/Object;>;
4 11 4 type B
6 7 5 frame Lio/netty/handler/codec/http/websocketx/WebSocketFrame;
8 11 5 frame Lio/netty/handler/codec/http/websocketx/WebSocketFrame;
Exceptions:
throws java.lang.Exception
Signature: (Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Ljava/util/List<Ljava/lang/Object;>;)V
MethodParameters:
Name Flags
ctx
in
out
private io.netty.handler.codec.http.websocketx.WebSocketFrame decodeBinaryFrame(io.netty.channel.ChannelHandlerContext, byte, io.netty.buffer.ByteBuf);
descriptor: (Lio/netty/channel/ChannelHandlerContext;BLio/netty/buffer/ByteBuf;)Lio/netty/handler/codec/http/websocketx/WebSocketFrame;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=9, args_size=4
start local 0 start local 1 start local 2 start local 3 0: lconst_0
lstore 4
start local 4 1: iconst_0
istore 6
start local 6 2: StackMap locals: long int
StackMap stack:
aload 3
invokevirtual io.netty.buffer.ByteBuf.readByte:()B
istore 7
start local 7 3: lload 4
bipush 7
lshl
lstore 4
4: lload 4
iload 7
bipush 127
iand
i2l
lor
lstore 4
5: lload 4
aload 0
getfield io.netty.handler.codec.http.websocketx.WebSocket00FrameDecoder.maxFrameSize:J
lcmp
ifle 7
6: new io.netty.handler.codec.TooLongFrameException
dup
invokespecial io.netty.handler.codec.TooLongFrameException.<init>:()V
athrow
7: StackMap locals: int
StackMap stack:
iinc 6 1
8: iload 6
bipush 8
if_icmple 10
9: new io.netty.handler.codec.TooLongFrameException
dup
invokespecial io.netty.handler.codec.TooLongFrameException.<init>:()V
athrow
10: StackMap locals:
StackMap stack:
iload 7
sipush 128
iand
sipush 128
if_icmpeq 2
11: iload 2
iconst_m1
if_icmpne 14
lload 4
lconst_0
lcmp
ifne 14
12: aload 0
iconst_1
putfield io.netty.handler.codec.http.websocketx.WebSocket00FrameDecoder.receivedClosingHandshake:Z
13: new io.netty.handler.codec.http.websocketx.CloseWebSocketFrame
dup
invokespecial io.netty.handler.codec.http.websocketx.CloseWebSocketFrame.<init>:()V
areturn
14: StackMap locals:
StackMap stack:
aload 1
invokeinterface io.netty.channel.ChannelHandlerContext.alloc:()Lio/netty/buffer/ByteBufAllocator;
aload 3
lload 4
l2i
invokestatic io.netty.buffer.ByteBufUtil.readBytes:(Lio/netty/buffer/ByteBufAllocator;Lio/netty/buffer/ByteBuf;I)Lio/netty/buffer/ByteBuf;
astore 8
start local 8 15: new io.netty.handler.codec.http.websocketx.BinaryWebSocketFrame
dup
aload 8
invokespecial io.netty.handler.codec.http.websocketx.BinaryWebSocketFrame.<init>:(Lio/netty/buffer/ByteBuf;)V
areturn
end local 8 end local 7 end local 6 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lio/netty/handler/codec/http/websocketx/WebSocket00FrameDecoder;
0 16 1 ctx Lio/netty/channel/ChannelHandlerContext;
0 16 2 type B
0 16 3 buffer Lio/netty/buffer/ByteBuf;
1 16 4 frameSize J
2 16 6 lengthFieldSize I
3 16 7 b B
15 16 8 payload Lio/netty/buffer/ByteBuf;
MethodParameters:
Name Flags
ctx
type
buffer
private io.netty.handler.codec.http.websocketx.WebSocketFrame decodeTextFrame(io.netty.channel.ChannelHandlerContext, io.netty.buffer.ByteBuf);
descriptor: (Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;)Lio/netty/handler/codec/http/websocketx/WebSocketFrame;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=9, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokevirtual io.netty.buffer.ByteBuf.readerIndex:()I
istore 3
start local 3 1: aload 0
invokevirtual io.netty.handler.codec.http.websocketx.WebSocket00FrameDecoder.actualReadableBytes:()I
istore 4
start local 4 2: aload 2
iload 3
iload 3
iload 4
iadd
iconst_m1
invokevirtual io.netty.buffer.ByteBuf.indexOf:(IIB)I
istore 5
start local 5 3: iload 5
iconst_m1
if_icmpne 7
4: iload 4
i2l
aload 0
getfield io.netty.handler.codec.http.websocketx.WebSocket00FrameDecoder.maxFrameSize:J
lcmp
ifle 6
5: new io.netty.handler.codec.TooLongFrameException
dup
invokespecial io.netty.handler.codec.TooLongFrameException.<init>:()V
athrow
6: StackMap locals: int int int
StackMap stack:
aconst_null
areturn
7: StackMap locals:
StackMap stack:
iload 5
iload 3
isub
istore 6
start local 6 8: iload 6
i2l
aload 0
getfield io.netty.handler.codec.http.websocketx.WebSocket00FrameDecoder.maxFrameSize:J
lcmp
ifle 10
9: new io.netty.handler.codec.TooLongFrameException
dup
invokespecial io.netty.handler.codec.TooLongFrameException.<init>:()V
athrow
10: StackMap locals: int
StackMap stack:
aload 1
invokeinterface io.netty.channel.ChannelHandlerContext.alloc:()Lio/netty/buffer/ByteBufAllocator;
aload 2
iload 6
invokestatic io.netty.buffer.ByteBufUtil.readBytes:(Lio/netty/buffer/ByteBufAllocator;Lio/netty/buffer/ByteBuf;I)Lio/netty/buffer/ByteBuf;
astore 7
start local 7 11: aload 2
iconst_1
invokevirtual io.netty.buffer.ByteBuf.skipBytes:(I)Lio/netty/buffer/ByteBuf;
pop
12: aload 7
aload 7
invokevirtual io.netty.buffer.ByteBuf.readerIndex:()I
aload 7
invokevirtual io.netty.buffer.ByteBuf.writerIndex:()I
iconst_m1
invokevirtual io.netty.buffer.ByteBuf.indexOf:(IIB)I
istore 8
start local 8 13: iload 8
iflt 16
14: aload 7
invokevirtual io.netty.buffer.ByteBuf.release:()Z
pop
15: new java.lang.IllegalArgumentException
dup
ldc "a text frame should not contain 0xFF."
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
16: StackMap locals: io.netty.buffer.ByteBuf int
StackMap stack:
new io.netty.handler.codec.http.websocketx.TextWebSocketFrame
dup
aload 7
invokespecial io.netty.handler.codec.http.websocketx.TextWebSocketFrame.<init>:(Lio/netty/buffer/ByteBuf;)V
areturn
end local 8 end local 7 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 Lio/netty/handler/codec/http/websocketx/WebSocket00FrameDecoder;
0 17 1 ctx Lio/netty/channel/ChannelHandlerContext;
0 17 2 buffer Lio/netty/buffer/ByteBuf;
1 17 3 ridx I
2 17 4 rbytes I
3 17 5 delimPos I
8 17 6 frameSize I
11 17 7 binaryData Lio/netty/buffer/ByteBuf;
13 17 8 ffDelimPos I
MethodParameters:
Name Flags
ctx
buffer
}
Signature: Lio/netty/handler/codec/ReplayingDecoder<Ljava/lang/Void;>;Lio/netty/handler/codec/http/websocketx/WebSocketFrameDecoder;
SourceFile: "WebSocket00FrameDecoder.java"