public abstract class io.netty.handler.codec.MessageToByteEncoder<I> extends io.netty.channel.ChannelOutboundHandlerAdapter
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: io.netty.handler.codec.MessageToByteEncoder
super_class: io.netty.channel.ChannelOutboundHandlerAdapter
{
private final io.netty.util.internal.TypeParameterMatcher matcher;
descriptor: Lio/netty/util/internal/TypeParameterMatcher;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final boolean preferDirect;
descriptor: Z
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.MessageToByteEncoder.<init>:(Z)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/handler/codec/MessageToByteEncoder<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.MessageToByteEncoder.<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/MessageToByteEncoder<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=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial io.netty.channel.ChannelOutboundHandlerAdapter.<init>:()V
1: aload 0
aload 0
ldc Lio/netty/handler/codec/MessageToByteEncoder;
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.MessageToByteEncoder.matcher:Lio/netty/util/internal/TypeParameterMatcher;
2: aload 0
iload 1
putfield io.netty.handler.codec.MessageToByteEncoder.preferDirect:Z
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/netty/handler/codec/MessageToByteEncoder<TI;>;
0 4 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=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial io.netty.channel.ChannelOutboundHandlerAdapter.<init>:()V
1: aload 0
aload 1
invokestatic io.netty.util.internal.TypeParameterMatcher.get:(Ljava/lang/Class;)Lio/netty/util/internal/TypeParameterMatcher;
putfield io.netty.handler.codec.MessageToByteEncoder.matcher:Lio/netty/util/internal/TypeParameterMatcher;
2: aload 0
iload 2
putfield io.netty.handler.codec.MessageToByteEncoder.preferDirect:Z
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/netty/handler/codec/MessageToByteEncoder<TI;>;
0 4 1 outboundMessageType Ljava/lang/Class<+TI;>;
0 4 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.MessageToByteEncoder.matcher: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/MessageToByteEncoder<TI;>;
0 1 1 msg Ljava/lang/Object;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
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=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aconst_null
astore 4
start local 4 1: aload 0
aload 2
invokevirtual io.netty.handler.codec.MessageToByteEncoder.acceptOutboundMessage:(Ljava/lang/Object;)Z
ifeq 17
2: aload 2
astore 5
start local 5 3: aload 0
aload 1
aload 5
aload 0
getfield io.netty.handler.codec.MessageToByteEncoder.preferDirect:Z
invokevirtual io.netty.handler.codec.MessageToByteEncoder.allocateBuffer:(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;Z)Lio/netty/buffer/ByteBuf;
astore 4
4: aload 0
aload 1
aload 5
aload 4
invokevirtual io.netty.handler.codec.MessageToByteEncoder.encode:(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;Lio/netty/buffer/ByteBuf;)V
5: goto 9
StackMap locals: io.netty.handler.codec.MessageToByteEncoder io.netty.channel.ChannelHandlerContext java.lang.Object io.netty.channel.ChannelPromise io.netty.buffer.ByteBuf java.lang.Object
StackMap stack: java.lang.Throwable
6: astore 6
7: aload 5
invokestatic io.netty.util.ReferenceCountUtil.release:(Ljava/lang/Object;)Z
pop
8: aload 6
athrow
9: StackMap locals:
StackMap stack:
aload 5
invokestatic io.netty.util.ReferenceCountUtil.release:(Ljava/lang/Object;)Z
pop
10: aload 4
invokevirtual io.netty.buffer.ByteBuf.isReadable:()Z
ifeq 13
11: aload 1
aload 4
aload 3
invokeinterface io.netty.channel.ChannelHandlerContext.write:(Ljava/lang/Object;Lio/netty/channel/ChannelPromise;)Lio/netty/channel/ChannelFuture;
pop
12: goto 15
13: StackMap locals:
StackMap stack:
aload 4
invokevirtual io.netty.buffer.ByteBuf.release:()Z
pop
14: aload 1
getstatic io.netty.buffer.Unpooled.EMPTY_BUFFER:Lio/netty/buffer/ByteBuf;
aload 3
invokeinterface io.netty.channel.ChannelHandlerContext.write:(Ljava/lang/Object;Lio/netty/channel/ChannelPromise;)Lio/netty/channel/ChannelFuture;
pop
15: StackMap locals:
StackMap stack:
aconst_null
astore 4
end local 5 16: goto 27
17: StackMap locals:
StackMap stack:
aload 1
aload 2
aload 3
invokeinterface io.netty.channel.ChannelHandlerContext.write:(Ljava/lang/Object;Lio/netty/channel/ChannelPromise;)Lio/netty/channel/ChannelFuture;
pop
18: goto 27
StackMap locals:
StackMap stack: io.netty.handler.codec.EncoderException
19: astore 5
start local 5 20: aload 5
athrow
end local 5 21: StackMap locals:
StackMap stack: java.lang.Throwable
astore 5
start local 5 22: new io.netty.handler.codec.EncoderException
dup
aload 5
invokespecial io.netty.handler.codec.EncoderException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 5 23: StackMap locals:
StackMap stack: java.lang.Throwable
astore 7
24: aload 4
ifnull 26
25: aload 4
invokevirtual io.netty.buffer.ByteBuf.release:()Z
pop
26: StackMap locals: io.netty.handler.codec.MessageToByteEncoder io.netty.channel.ChannelHandlerContext java.lang.Object io.netty.channel.ChannelPromise io.netty.buffer.ByteBuf top top java.lang.Throwable
StackMap stack:
aload 7
athrow
27: StackMap locals: io.netty.handler.codec.MessageToByteEncoder io.netty.channel.ChannelHandlerContext java.lang.Object io.netty.channel.ChannelPromise io.netty.buffer.ByteBuf
StackMap stack:
aload 4
ifnull 29
28: aload 4
invokevirtual io.netty.buffer.ByteBuf.release:()Z
pop
29: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 30 0 this Lio/netty/handler/codec/MessageToByteEncoder<TI;>;
0 30 1 ctx Lio/netty/channel/ChannelHandlerContext;
0 30 2 msg Ljava/lang/Object;
0 30 3 promise Lio/netty/channel/ChannelPromise;
1 30 4 buf Lio/netty/buffer/ByteBuf;
3 16 5 cast TI;
20 21 5 e Lio/netty/handler/codec/EncoderException;
22 23 5 e Ljava/lang/Throwable;
Exception table:
from to target type
4 6 6 any
1 18 19 Class io.netty.handler.codec.EncoderException
1 18 21 Class java.lang.Throwable
1 23 23 any
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
ctx
msg
promise
protected io.netty.buffer.ByteBuf allocateBuffer(io.netty.channel.ChannelHandlerContext, I, boolean);
descriptor: (Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;Z)Lio/netty/buffer/ByteBuf;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 3
ifeq 2
1: aload 1
invokeinterface io.netty.channel.ChannelHandlerContext.alloc:()Lio/netty/buffer/ByteBufAllocator;
invokeinterface io.netty.buffer.ByteBufAllocator.ioBuffer:()Lio/netty/buffer/ByteBuf;
areturn
2: StackMap locals:
StackMap stack:
aload 1
invokeinterface io.netty.channel.ChannelHandlerContext.alloc:()Lio/netty/buffer/ByteBufAllocator;
invokeinterface io.netty.buffer.ByteBufAllocator.heapBuffer:()Lio/netty/buffer/ByteBuf;
areturn
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/MessageToByteEncoder<TI;>;
0 3 1 ctx Lio/netty/channel/ChannelHandlerContext;
0 3 2 msg TI;
0 3 3 preferDirect Z
Exceptions:
throws java.lang.Exception
Signature: (Lio/netty/channel/ChannelHandlerContext;TI;Z)Lio/netty/buffer/ByteBuf;
MethodParameters:
Name Flags
ctx
msg
preferDirect
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 boolean isPreferDirect();
descriptor: ()Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.handler.codec.MessageToByteEncoder.preferDirect:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/handler/codec/MessageToByteEncoder<TI;>;
}
Signature: <I:Ljava/lang/Object;>Lio/netty/channel/ChannelOutboundHandlerAdapter;
SourceFile: "MessageToByteEncoder.java"