public abstract class io.netty.handler.codec.ByteToMessageCodec<I> extends io.netty.channel.ChannelDuplexHandler
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: io.netty.handler.codec.ByteToMessageCodec
super_class: io.netty.channel.ChannelDuplexHandler
{
private final io.netty.util.internal.TypeParameterMatcher outboundMsgMatcher;
descriptor: Lio/netty/util/internal/TypeParameterMatcher;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final io.netty.handler.codec.MessageToByteEncoder<I> encoder;
descriptor: Lio/netty/handler/codec/MessageToByteEncoder;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lio/netty/handler/codec/MessageToByteEncoder<TI;>;
private final io.netty.handler.codec.ByteToMessageDecoder decoder;
descriptor: Lio/netty/handler/codec/ByteToMessageDecoder;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
protected void <init>();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
invokespecial io.netty.handler.codec.ByteToMessageCodec.<init>:(Z)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/handler/codec/ByteToMessageCodec<TI;>;
protected void <init>(java.lang.Class<? extends I>);
descriptor: (Ljava/lang/Class;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_1
invokespecial io.netty.handler.codec.ByteToMessageCodec.<init>:(Ljava/lang/Class;Z)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/handler/codec/ByteToMessageCodec<TI;>;
0 2 1 outboundMessageType Ljava/lang/Class<+TI;>;
Signature: (Ljava/lang/Class<+TI;>;)V
MethodParameters:
Name Flags
outboundMessageType
protected void <init>(boolean);
descriptor: (Z)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial io.netty.channel.ChannelDuplexHandler.<init>:()V
1: aload 0
new io.netty.handler.codec.ByteToMessageCodec$1
dup
aload 0
invokespecial io.netty.handler.codec.ByteToMessageCodec$1.<init>:(Lio/netty/handler/codec/ByteToMessageCodec;)V
putfield io.netty.handler.codec.ByteToMessageCodec.decoder:Lio/netty/handler/codec/ByteToMessageDecoder;
2: aload 0
invokevirtual io.netty.handler.codec.ByteToMessageCodec.ensureNotSharable:()V
3: aload 0
aload 0
ldc Lio/netty/handler/codec/ByteToMessageCodec;
ldc "I"
invokestatic io.netty.util.internal.TypeParameterMatcher.find:(Ljava/lang/Object;Ljava/lang/Class;Ljava/lang/String;)Lio/netty/util/internal/TypeParameterMatcher;
putfield io.netty.handler.codec.ByteToMessageCodec.outboundMsgMatcher:Lio/netty/util/internal/TypeParameterMatcher;
4: aload 0
new io.netty.handler.codec.ByteToMessageCodec$Encoder
dup
aload 0
iload 1
invokespecial io.netty.handler.codec.ByteToMessageCodec$Encoder.<init>:(Lio/netty/handler/codec/ByteToMessageCodec;Z)V
putfield io.netty.handler.codec.ByteToMessageCodec.encoder:Lio/netty/handler/codec/MessageToByteEncoder;
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lio/netty/handler/codec/ByteToMessageCodec<TI;>;
0 6 1 preferDirect Z
MethodParameters:
Name Flags
preferDirect
protected void <init>(java.lang.Class<? extends I>, );
descriptor: (Ljava/lang/Class;Z)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial io.netty.channel.ChannelDuplexHandler.<init>:()V
1: aload 0
new io.netty.handler.codec.ByteToMessageCodec$1
dup
aload 0
invokespecial io.netty.handler.codec.ByteToMessageCodec$1.<init>:(Lio/netty/handler/codec/ByteToMessageCodec;)V
putfield io.netty.handler.codec.ByteToMessageCodec.decoder:Lio/netty/handler/codec/ByteToMessageDecoder;
2: aload 0
invokevirtual io.netty.handler.codec.ByteToMessageCodec.ensureNotSharable:()V
3: aload 0
aload 1
invokestatic io.netty.util.internal.TypeParameterMatcher.get:(Ljava/lang/Class;)Lio/netty/util/internal/TypeParameterMatcher;
putfield io.netty.handler.codec.ByteToMessageCodec.outboundMsgMatcher:Lio/netty/util/internal/TypeParameterMatcher;
4: aload 0
new io.netty.handler.codec.ByteToMessageCodec$Encoder
dup
aload 0
iload 2
invokespecial io.netty.handler.codec.ByteToMessageCodec$Encoder.<init>:(Lio/netty/handler/codec/ByteToMessageCodec;Z)V
putfield io.netty.handler.codec.ByteToMessageCodec.encoder:Lio/netty/handler/codec/MessageToByteEncoder;
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lio/netty/handler/codec/ByteToMessageCodec<TI;>;
0 6 1 outboundMessageType Ljava/lang/Class<+TI;>;
0 6 2 preferDirect Z
Signature: (Ljava/lang/Class<+TI;>;Z)V
MethodParameters:
Name Flags
outboundMessageType
preferDirect
public boolean acceptOutboundMessage(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield io.netty.handler.codec.ByteToMessageCodec.outboundMsgMatcher:Lio/netty/util/internal/TypeParameterMatcher;
aload 1
invokevirtual io.netty.util.internal.TypeParameterMatcher.match:(Ljava/lang/Object;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/handler/codec/ByteToMessageCodec<TI;>;
0 1 1 msg Ljava/lang/Object;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
msg
public void channelRead(io.netty.channel.ChannelHandlerContext, java.lang.Object);
descriptor: (Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield io.netty.handler.codec.ByteToMessageCodec.decoder:Lio/netty/handler/codec/ByteToMessageDecoder;
aload 1
aload 2
invokevirtual io.netty.handler.codec.ByteToMessageDecoder.channelRead:(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/handler/codec/ByteToMessageCodec<TI;>;
0 2 1 ctx Lio/netty/channel/ChannelHandlerContext;
0 2 2 msg Ljava/lang/Object;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
ctx
msg
public void write(io.netty.channel.ChannelHandlerContext, java.lang.Object, io.netty.channel.ChannelPromise);
descriptor: (Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;Lio/netty/channel/ChannelPromise;)V
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 io.netty.handler.codec.ByteToMessageCodec.encoder:Lio/netty/handler/codec/MessageToByteEncoder;
aload 1
aload 2
aload 3
invokevirtual io.netty.handler.codec.MessageToByteEncoder.write:(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;Lio/netty/channel/ChannelPromise;)V
1: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/handler/codec/ByteToMessageCodec<TI;>;
0 2 1 ctx Lio/netty/channel/ChannelHandlerContext;
0 2 2 msg Ljava/lang/Object;
0 2 3 promise Lio/netty/channel/ChannelPromise;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
ctx
msg
promise
public void channelReadComplete(io.netty.channel.ChannelHandlerContext);
descriptor: (Lio/netty/channel/ChannelHandlerContext;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield io.netty.handler.codec.ByteToMessageCodec.decoder:Lio/netty/handler/codec/ByteToMessageDecoder;
aload 1
invokevirtual io.netty.handler.codec.ByteToMessageDecoder.channelReadComplete:(Lio/netty/channel/ChannelHandlerContext;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/handler/codec/ByteToMessageCodec<TI;>;
0 2 1 ctx Lio/netty/channel/ChannelHandlerContext;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
ctx
public void channelInactive(io.netty.channel.ChannelHandlerContext);
descriptor: (Lio/netty/channel/ChannelHandlerContext;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield io.netty.handler.codec.ByteToMessageCodec.decoder:Lio/netty/handler/codec/ByteToMessageDecoder;
aload 1
invokevirtual io.netty.handler.codec.ByteToMessageDecoder.channelInactive:(Lio/netty/channel/ChannelHandlerContext;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/handler/codec/ByteToMessageCodec<TI;>;
0 2 1 ctx Lio/netty/channel/ChannelHandlerContext;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
ctx
public void handlerAdded(io.netty.channel.ChannelHandlerContext);
descriptor: (Lio/netty/channel/ChannelHandlerContext;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield io.netty.handler.codec.ByteToMessageCodec.decoder:Lio/netty/handler/codec/ByteToMessageDecoder;
aload 1
invokevirtual io.netty.handler.codec.ByteToMessageDecoder.handlerAdded:(Lio/netty/channel/ChannelHandlerContext;)V
1: goto 5
StackMap locals:
StackMap stack: java.lang.Throwable
2: astore 2
3: aload 0
getfield io.netty.handler.codec.ByteToMessageCodec.encoder:Lio/netty/handler/codec/MessageToByteEncoder;
aload 1
invokevirtual io.netty.handler.codec.MessageToByteEncoder.handlerAdded:(Lio/netty/channel/ChannelHandlerContext;)V
4: aload 2
athrow
5: StackMap locals:
StackMap stack:
aload 0
getfield io.netty.handler.codec.ByteToMessageCodec.encoder:Lio/netty/handler/codec/MessageToByteEncoder;
aload 1
invokevirtual io.netty.handler.codec.MessageToByteEncoder.handlerAdded:(Lio/netty/channel/ChannelHandlerContext;)V
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lio/netty/handler/codec/ByteToMessageCodec<TI;>;
0 7 1 ctx Lio/netty/channel/ChannelHandlerContext;
Exception table:
from to target type
0 2 2 any
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
ctx
public void handlerRemoved(io.netty.channel.ChannelHandlerContext);
descriptor: (Lio/netty/channel/ChannelHandlerContext;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield io.netty.handler.codec.ByteToMessageCodec.decoder:Lio/netty/handler/codec/ByteToMessageDecoder;
aload 1
invokevirtual io.netty.handler.codec.ByteToMessageDecoder.handlerRemoved:(Lio/netty/channel/ChannelHandlerContext;)V
1: goto 5
StackMap locals:
StackMap stack: java.lang.Throwable
2: astore 2
3: aload 0
getfield io.netty.handler.codec.ByteToMessageCodec.encoder:Lio/netty/handler/codec/MessageToByteEncoder;
aload 1
invokevirtual io.netty.handler.codec.MessageToByteEncoder.handlerRemoved:(Lio/netty/channel/ChannelHandlerContext;)V
4: aload 2
athrow
5: StackMap locals:
StackMap stack:
aload 0
getfield io.netty.handler.codec.ByteToMessageCodec.encoder:Lio/netty/handler/codec/MessageToByteEncoder;
aload 1
invokevirtual io.netty.handler.codec.MessageToByteEncoder.handlerRemoved:(Lio/netty/channel/ChannelHandlerContext;)V
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lio/netty/handler/codec/ByteToMessageCodec<TI;>;
0 7 1 ctx Lio/netty/channel/ChannelHandlerContext;
Exception table:
from to target type
0 2 2 any
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
ctx
protected abstract void encode(io.netty.channel.ChannelHandlerContext, I, io.netty.buffer.ByteBuf);
descriptor: (Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;Lio/netty/buffer/ByteBuf;)V
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
Exceptions:
throws java.lang.Exception
Signature: (Lio/netty/channel/ChannelHandlerContext;TI;Lio/netty/buffer/ByteBuf;)V
MethodParameters:
Name Flags
ctx
msg
out
protected abstract 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: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
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
protected void decodeLast(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=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
invokevirtual io.netty.buffer.ByteBuf.isReadable:()Z
ifeq 2
1: aload 0
aload 1
aload 2
aload 3
invokevirtual io.netty.handler.codec.ByteToMessageCodec.decode:(Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Ljava/util/List;)V
2: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/netty/handler/codec/ByteToMessageCodec<TI;>;
0 3 1 ctx Lio/netty/channel/ChannelHandlerContext;
0 3 2 in Lio/netty/buffer/ByteBuf;
0 3 3 out Ljava/util/List<Ljava/lang/Object;>;
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
}
Signature: <I:Ljava/lang/Object;>Lio/netty/channel/ChannelDuplexHandler;
SourceFile: "ByteToMessageCodec.java"
NestMembers:
io.netty.handler.codec.ByteToMessageCodec$1 io.netty.handler.codec.ByteToMessageCodec$Encoder
InnerClasses:
io.netty.handler.codec.ByteToMessageCodec$1
private final Encoder = io.netty.handler.codec.ByteToMessageCodec$Encoder of io.netty.handler.codec.ByteToMessageCodec