public class io.netty.handler.codec.socksx.v5.Socks5ClientEncoder extends io.netty.handler.codec.MessageToByteEncoder<io.netty.handler.codec.socksx.v5.Socks5Message>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.netty.handler.codec.socksx.v5.Socks5ClientEncoder
super_class: io.netty.handler.codec.MessageToByteEncoder
{
public static final io.netty.handler.codec.socksx.v5.Socks5ClientEncoder DEFAULT;
descriptor: Lio/netty/handler/codec/socksx/v5/Socks5ClientEncoder;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
private final io.netty.handler.codec.socksx.v5.Socks5AddressEncoder addressEncoder;
descriptor: Lio/netty/handler/codec/socksx/v5/Socks5AddressEncoder;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new io.netty.handler.codec.socksx.v5.Socks5ClientEncoder
dup
invokespecial io.netty.handler.codec.socksx.v5.Socks5ClientEncoder.<init>:()V
putstatic io.netty.handler.codec.socksx.v5.Socks5ClientEncoder.DEFAULT:Lio/netty/handler/codec/socksx/v5/Socks5ClientEncoder;
return
LocalVariableTable:
Start End Slot Name Signature
protected void <init>();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic io.netty.handler.codec.socksx.v5.Socks5AddressEncoder.DEFAULT:Lio/netty/handler/codec/socksx/v5/Socks5AddressEncoder;
invokespecial io.netty.handler.codec.socksx.v5.Socks5ClientEncoder.<init>:(Lio/netty/handler/codec/socksx/v5/Socks5AddressEncoder;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/handler/codec/socksx/v5/Socks5ClientEncoder;
public void <init>(io.netty.handler.codec.socksx.v5.Socks5AddressEncoder);
descriptor: (Lio/netty/handler/codec/socksx/v5/Socks5AddressEncoder;)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.MessageToByteEncoder.<init>:()V
1: aload 1
ifnonnull 3
2: new java.lang.NullPointerException
dup
ldc "addressEncoder"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: io.netty.handler.codec.socksx.v5.Socks5ClientEncoder io.netty.handler.codec.socksx.v5.Socks5AddressEncoder
StackMap stack:
aload 0
aload 1
putfield io.netty.handler.codec.socksx.v5.Socks5ClientEncoder.addressEncoder:Lio/netty/handler/codec/socksx/v5/Socks5AddressEncoder;
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/netty/handler/codec/socksx/v5/Socks5ClientEncoder;
0 5 1 addressEncoder Lio/netty/handler/codec/socksx/v5/Socks5AddressEncoder;
MethodParameters:
Name Flags
addressEncoder
protected final io.netty.handler.codec.socksx.v5.Socks5AddressEncoder addressEncoder();
descriptor: ()Lio/netty/handler/codec/socksx/v5/Socks5AddressEncoder;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.handler.codec.socksx.v5.Socks5ClientEncoder.addressEncoder:Lio/netty/handler/codec/socksx/v5/Socks5AddressEncoder;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/handler/codec/socksx/v5/Socks5ClientEncoder;
protected void encode(io.netty.channel.ChannelHandlerContext, io.netty.handler.codec.socksx.v5.Socks5Message, io.netty.buffer.ByteBuf);
descriptor: (Lio/netty/channel/ChannelHandlerContext;Lio/netty/handler/codec/socksx/v5/Socks5Message;Lio/netty/buffer/ByteBuf;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
instanceof io.netty.handler.codec.socksx.v5.Socks5InitialRequest
ifeq 3
1: aload 2
checkcast io.netty.handler.codec.socksx.v5.Socks5InitialRequest
aload 3
invokestatic io.netty.handler.codec.socksx.v5.Socks5ClientEncoder.encodeAuthMethodRequest:(Lio/netty/handler/codec/socksx/v5/Socks5InitialRequest;Lio/netty/buffer/ByteBuf;)V
2: goto 10
StackMap locals:
StackMap stack:
3: aload 2
instanceof io.netty.handler.codec.socksx.v5.Socks5PasswordAuthRequest
ifeq 6
4: aload 2
checkcast io.netty.handler.codec.socksx.v5.Socks5PasswordAuthRequest
aload 3
invokestatic io.netty.handler.codec.socksx.v5.Socks5ClientEncoder.encodePasswordAuthRequest:(Lio/netty/handler/codec/socksx/v5/Socks5PasswordAuthRequest;Lio/netty/buffer/ByteBuf;)V
5: goto 10
StackMap locals:
StackMap stack:
6: aload 2
instanceof io.netty.handler.codec.socksx.v5.Socks5CommandRequest
ifeq 9
7: aload 0
aload 2
checkcast io.netty.handler.codec.socksx.v5.Socks5CommandRequest
aload 3
invokevirtual io.netty.handler.codec.socksx.v5.Socks5ClientEncoder.encodeCommandRequest:(Lio/netty/handler/codec/socksx/v5/Socks5CommandRequest;Lio/netty/buffer/ByteBuf;)V
8: goto 10
9: StackMap locals:
StackMap stack:
new io.netty.handler.codec.EncoderException
dup
new java.lang.StringBuilder
dup
ldc "unsupported message type: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokestatic io.netty.util.internal.StringUtil.simpleClassName:(Ljava/lang/Object;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial io.netty.handler.codec.EncoderException.<init>:(Ljava/lang/String;)V
athrow
10: StackMap locals:
StackMap stack:
return
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/socksx/v5/Socks5ClientEncoder;
0 11 1 ctx Lio/netty/channel/ChannelHandlerContext;
0 11 2 msg Lio/netty/handler/codec/socksx/v5/Socks5Message;
0 11 3 out Lio/netty/buffer/ByteBuf;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
ctx
msg
out
private static void encodeAuthMethodRequest(io.netty.handler.codec.socksx.v5.Socks5InitialRequest, io.netty.buffer.ByteBuf);
descriptor: (Lio/netty/handler/codec/socksx/v5/Socks5InitialRequest;Lio/netty/buffer/ByteBuf;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=6, args_size=2
start local 0 start local 1 0: aload 1
aload 0
invokeinterface io.netty.handler.codec.socksx.v5.Socks5InitialRequest.version:()Lio/netty/handler/codec/socksx/SocksVersion;
invokevirtual io.netty.handler.codec.socksx.SocksVersion.byteValue:()B
invokevirtual io.netty.buffer.ByteBuf.writeByte:(I)Lio/netty/buffer/ByteBuf;
pop
1: aload 0
invokeinterface io.netty.handler.codec.socksx.v5.Socks5InitialRequest.authMethods:()Ljava/util/List;
astore 2
start local 2 2: aload 2
invokeinterface java.util.List.size:()I
istore 3
start local 3 3: aload 1
iload 3
invokevirtual io.netty.buffer.ByteBuf.writeByte:(I)Lio/netty/buffer/ByteBuf;
pop
4: aload 2
instanceof java.util.RandomAccess
ifeq 11
5: iconst_0
istore 4
start local 4 6: goto 9
7: StackMap locals: java.util.List int int
StackMap stack:
aload 1
aload 2
iload 4
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast io.netty.handler.codec.socksx.v5.Socks5AuthMethod
invokevirtual io.netty.handler.codec.socksx.v5.Socks5AuthMethod.byteValue:()B
invokevirtual io.netty.buffer.ByteBuf.writeByte:(I)Lio/netty/buffer/ByteBuf;
pop
8: iinc 4 1
StackMap locals:
StackMap stack:
9: iload 4
iload 3
if_icmplt 7
end local 4 10: goto 15
11: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 5
goto 14
StackMap locals: io.netty.handler.codec.socksx.v5.Socks5InitialRequest io.netty.buffer.ByteBuf java.util.List int top java.util.Iterator
StackMap stack:
12: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast io.netty.handler.codec.socksx.v5.Socks5AuthMethod
astore 4
start local 4 13: aload 1
aload 4
invokevirtual io.netty.handler.codec.socksx.v5.Socks5AuthMethod.byteValue:()B
invokevirtual io.netty.buffer.ByteBuf.writeByte:(I)Lio/netty/buffer/ByteBuf;
pop
end local 4 14: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 12
15: StackMap locals: io.netty.handler.codec.socksx.v5.Socks5InitialRequest io.netty.buffer.ByteBuf java.util.List int
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 msg Lio/netty/handler/codec/socksx/v5/Socks5InitialRequest;
0 16 1 out Lio/netty/buffer/ByteBuf;
2 16 2 authMethods Ljava/util/List<Lio/netty/handler/codec/socksx/v5/Socks5AuthMethod;>;
3 16 3 numAuthMethods I
6 10 4 i I
13 14 4 a Lio/netty/handler/codec/socksx/v5/Socks5AuthMethod;
MethodParameters:
Name Flags
msg
out
private static void encodePasswordAuthRequest(io.netty.handler.codec.socksx.v5.Socks5PasswordAuthRequest, io.netty.buffer.ByteBuf);
descriptor: (Lio/netty/handler/codec/socksx/v5/Socks5PasswordAuthRequest;Lio/netty/buffer/ByteBuf;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 1
iconst_1
invokevirtual io.netty.buffer.ByteBuf.writeByte:(I)Lio/netty/buffer/ByteBuf;
pop
1: aload 0
invokeinterface io.netty.handler.codec.socksx.v5.Socks5PasswordAuthRequest.username:()Ljava/lang/String;
astore 2
start local 2 2: aload 1
aload 2
invokevirtual java.lang.String.length:()I
invokevirtual io.netty.buffer.ByteBuf.writeByte:(I)Lio/netty/buffer/ByteBuf;
pop
3: aload 1
aload 2
invokestatic io.netty.buffer.ByteBufUtil.writeAscii:(Lio/netty/buffer/ByteBuf;Ljava/lang/CharSequence;)I
pop
4: aload 0
invokeinterface io.netty.handler.codec.socksx.v5.Socks5PasswordAuthRequest.password:()Ljava/lang/String;
astore 3
start local 3 5: aload 1
aload 3
invokevirtual java.lang.String.length:()I
invokevirtual io.netty.buffer.ByteBuf.writeByte:(I)Lio/netty/buffer/ByteBuf;
pop
6: aload 1
aload 3
invokestatic io.netty.buffer.ByteBufUtil.writeAscii:(Lio/netty/buffer/ByteBuf;Ljava/lang/CharSequence;)I
pop
7: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 msg Lio/netty/handler/codec/socksx/v5/Socks5PasswordAuthRequest;
0 8 1 out Lio/netty/buffer/ByteBuf;
2 8 2 username Ljava/lang/String;
5 8 3 password Ljava/lang/String;
MethodParameters:
Name Flags
msg
out
private void encodeCommandRequest(io.netty.handler.codec.socksx.v5.Socks5CommandRequest, io.netty.buffer.ByteBuf);
descriptor: (Lio/netty/handler/codec/socksx/v5/Socks5CommandRequest;Lio/netty/buffer/ByteBuf;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 2
aload 1
invokeinterface io.netty.handler.codec.socksx.v5.Socks5CommandRequest.version:()Lio/netty/handler/codec/socksx/SocksVersion;
invokevirtual io.netty.handler.codec.socksx.SocksVersion.byteValue:()B
invokevirtual io.netty.buffer.ByteBuf.writeByte:(I)Lio/netty/buffer/ByteBuf;
pop
1: aload 2
aload 1
invokeinterface io.netty.handler.codec.socksx.v5.Socks5CommandRequest.type:()Lio/netty/handler/codec/socksx/v5/Socks5CommandType;
invokevirtual io.netty.handler.codec.socksx.v5.Socks5CommandType.byteValue:()B
invokevirtual io.netty.buffer.ByteBuf.writeByte:(I)Lio/netty/buffer/ByteBuf;
pop
2: aload 2
iconst_0
invokevirtual io.netty.buffer.ByteBuf.writeByte:(I)Lio/netty/buffer/ByteBuf;
pop
3: aload 1
invokeinterface io.netty.handler.codec.socksx.v5.Socks5CommandRequest.dstAddrType:()Lio/netty/handler/codec/socksx/v5/Socks5AddressType;
astore 3
start local 3 4: aload 2
aload 3
invokevirtual io.netty.handler.codec.socksx.v5.Socks5AddressType.byteValue:()B
invokevirtual io.netty.buffer.ByteBuf.writeByte:(I)Lio/netty/buffer/ByteBuf;
pop
5: aload 0
getfield io.netty.handler.codec.socksx.v5.Socks5ClientEncoder.addressEncoder:Lio/netty/handler/codec/socksx/v5/Socks5AddressEncoder;
aload 3
aload 1
invokeinterface io.netty.handler.codec.socksx.v5.Socks5CommandRequest.dstAddr:()Ljava/lang/String;
aload 2
invokeinterface io.netty.handler.codec.socksx.v5.Socks5AddressEncoder.encodeAddress:(Lio/netty/handler/codec/socksx/v5/Socks5AddressType;Ljava/lang/String;Lio/netty/buffer/ByteBuf;)V
6: aload 2
aload 1
invokeinterface io.netty.handler.codec.socksx.v5.Socks5CommandRequest.dstPort:()I
invokevirtual io.netty.buffer.ByteBuf.writeShort:(I)Lio/netty/buffer/ByteBuf;
pop
7: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lio/netty/handler/codec/socksx/v5/Socks5ClientEncoder;
0 8 1 msg Lio/netty/handler/codec/socksx/v5/Socks5CommandRequest;
0 8 2 out Lio/netty/buffer/ByteBuf;
4 8 3 dstAddrType Lio/netty/handler/codec/socksx/v5/Socks5AddressType;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
msg
out
protected void encode(io.netty.channel.ChannelHandlerContext, java.lang.Object, io.netty.buffer.ByteBuf);
descriptor: (Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;Lio/netty/buffer/ByteBuf;)V
flags: (0x1044) ACC_PROTECTED, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=4, locals=4, args_size=4
0: aload 0
aload 1
aload 2
checkcast io.netty.handler.codec.socksx.v5.Socks5Message
aload 3
invokevirtual io.netty.handler.codec.socksx.v5.Socks5ClientEncoder.encode:(Lio/netty/channel/ChannelHandlerContext;Lio/netty/handler/codec/socksx/v5/Socks5Message;Lio/netty/buffer/ByteBuf;)V
return
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws java.lang.Exception
}
Signature: Lio/netty/handler/codec/MessageToByteEncoder<Lio/netty/handler/codec/socksx/v5/Socks5Message;>;
SourceFile: "Socks5ClientEncoder.java"
InnerClasses:
public abstract Sharable = io.netty.channel.ChannelHandler$Sharable of io.netty.channel.ChannelHandler
RuntimeVisibleAnnotations:
io.netty.channel.ChannelHandler$Sharable()