public final class io.netty.handler.codec.AsciiHeadersEncoder
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: io.netty.handler.codec.AsciiHeadersEncoder
super_class: java.lang.Object
{
private final io.netty.buffer.ByteBuf buf;
descriptor: Lio/netty/buffer/ByteBuf;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final io.netty.handler.codec.AsciiHeadersEncoder$SeparatorType separatorType;
descriptor: Lio/netty/handler/codec/AsciiHeadersEncoder$SeparatorType;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final io.netty.handler.codec.AsciiHeadersEncoder$NewlineType newlineType;
descriptor: Lio/netty/handler/codec/AsciiHeadersEncoder$NewlineType;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private static volatile int[] $SWITCH_TABLE$io$netty$handler$codec$AsciiHeadersEncoder$SeparatorType;
descriptor: [I
flags: (0x104a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE, ACC_SYNTHETIC
private static volatile int[] $SWITCH_TABLE$io$netty$handler$codec$AsciiHeadersEncoder$NewlineType;
descriptor: [I
flags: (0x104a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE, ACC_SYNTHETIC
public void <init>(io.netty.buffer.ByteBuf);
descriptor: (Lio/netty/buffer/ByteBuf;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
getstatic io.netty.handler.codec.AsciiHeadersEncoder$SeparatorType.COLON_SPACE:Lio/netty/handler/codec/AsciiHeadersEncoder$SeparatorType;
getstatic io.netty.handler.codec.AsciiHeadersEncoder$NewlineType.CRLF:Lio/netty/handler/codec/AsciiHeadersEncoder$NewlineType;
invokespecial io.netty.handler.codec.AsciiHeadersEncoder.<init>:(Lio/netty/buffer/ByteBuf;Lio/netty/handler/codec/AsciiHeadersEncoder$SeparatorType;Lio/netty/handler/codec/AsciiHeadersEncoder$NewlineType;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/handler/codec/AsciiHeadersEncoder;
0 2 1 buf Lio/netty/buffer/ByteBuf;
MethodParameters:
Name Flags
buf
public void <init>(io.netty.buffer.ByteBuf, io.netty.handler.codec.AsciiHeadersEncoder$SeparatorType, io.netty.handler.codec.AsciiHeadersEncoder$NewlineType);
descriptor: (Lio/netty/buffer/ByteBuf;Lio/netty/handler/codec/AsciiHeadersEncoder$SeparatorType;Lio/netty/handler/codec/AsciiHeadersEncoder$NewlineType;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 1
ifnonnull 3
2: new java.lang.NullPointerException
dup
ldc "buf"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: io.netty.handler.codec.AsciiHeadersEncoder io.netty.buffer.ByteBuf io.netty.handler.codec.AsciiHeadersEncoder$SeparatorType io.netty.handler.codec.AsciiHeadersEncoder$NewlineType
StackMap stack:
aload 2
ifnonnull 5
4: new java.lang.NullPointerException
dup
ldc "separatorType"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals:
StackMap stack:
aload 3
ifnonnull 7
6: new java.lang.NullPointerException
dup
ldc "newlineType"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield io.netty.handler.codec.AsciiHeadersEncoder.buf:Lio/netty/buffer/ByteBuf;
8: aload 0
aload 2
putfield io.netty.handler.codec.AsciiHeadersEncoder.separatorType:Lio/netty/handler/codec/AsciiHeadersEncoder$SeparatorType;
9: aload 0
aload 3
putfield io.netty.handler.codec.AsciiHeadersEncoder.newlineType:Lio/netty/handler/codec/AsciiHeadersEncoder$NewlineType;
10: 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/AsciiHeadersEncoder;
0 11 1 buf Lio/netty/buffer/ByteBuf;
0 11 2 separatorType Lio/netty/handler/codec/AsciiHeadersEncoder$SeparatorType;
0 11 3 newlineType Lio/netty/handler/codec/AsciiHeadersEncoder$NewlineType;
MethodParameters:
Name Flags
buf
separatorType
newlineType
public void encode(java.util.Map$Entry<java.lang.CharSequence, java.lang.CharSequence>);
descriptor: (Ljava/util/Map$Entry;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=9, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.lang.CharSequence
astore 2
start local 2 1: aload 1
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast java.lang.CharSequence
astore 3
start local 3 2: aload 0
getfield io.netty.handler.codec.AsciiHeadersEncoder.buf:Lio/netty/buffer/ByteBuf;
astore 4
start local 4 3: aload 2
invokeinterface java.lang.CharSequence.length:()I
istore 5
start local 5 4: aload 3
invokeinterface java.lang.CharSequence.length:()I
istore 6
start local 6 5: iload 5
iload 6
iadd
iconst_4
iadd
istore 7
start local 7 6: aload 4
invokevirtual io.netty.buffer.ByteBuf.writerIndex:()I
istore 8
start local 8 7: aload 4
iload 7
invokevirtual io.netty.buffer.ByteBuf.ensureWritable:(I)Lio/netty/buffer/ByteBuf;
pop
8: aload 4
iload 8
aload 2
invokestatic io.netty.handler.codec.AsciiHeadersEncoder.writeAscii:(Lio/netty/buffer/ByteBuf;ILjava/lang/CharSequence;)V
9: iload 8
iload 5
iadd
istore 8
10: invokestatic io.netty.handler.codec.AsciiHeadersEncoder.$SWITCH_TABLE$io$netty$handler$codec$AsciiHeadersEncoder$SeparatorType:()[I
aload 0
getfield io.netty.handler.codec.AsciiHeadersEncoder.separatorType:Lio/netty/handler/codec/AsciiHeadersEncoder$SeparatorType;
invokevirtual io.netty.handler.codec.AsciiHeadersEncoder$SeparatorType.ordinal:()I
iaload
tableswitch { // 1 - 2
1: 11
2: 13
default: 16
}
11: StackMap locals: io.netty.handler.codec.AsciiHeadersEncoder java.util.Map$Entry java.lang.CharSequence java.lang.CharSequence io.netty.buffer.ByteBuf int int int int
StackMap stack:
aload 4
iload 8
iinc 8 1
bipush 58
invokevirtual io.netty.buffer.ByteBuf.setByte:(II)Lio/netty/buffer/ByteBuf;
pop
12: goto 17
13: StackMap locals:
StackMap stack:
aload 4
iload 8
iinc 8 1
bipush 58
invokevirtual io.netty.buffer.ByteBuf.setByte:(II)Lio/netty/buffer/ByteBuf;
pop
14: aload 4
iload 8
iinc 8 1
bipush 32
invokevirtual io.netty.buffer.ByteBuf.setByte:(II)Lio/netty/buffer/ByteBuf;
pop
15: goto 17
16: StackMap locals:
StackMap stack:
new java.lang.Error
dup
invokespecial java.lang.Error.<init>:()V
athrow
17: StackMap locals:
StackMap stack:
aload 4
iload 8
aload 3
invokestatic io.netty.handler.codec.AsciiHeadersEncoder.writeAscii:(Lio/netty/buffer/ByteBuf;ILjava/lang/CharSequence;)V
18: iload 8
iload 6
iadd
istore 8
19: invokestatic io.netty.handler.codec.AsciiHeadersEncoder.$SWITCH_TABLE$io$netty$handler$codec$AsciiHeadersEncoder$NewlineType:()[I
aload 0
getfield io.netty.handler.codec.AsciiHeadersEncoder.newlineType:Lio/netty/handler/codec/AsciiHeadersEncoder$NewlineType;
invokevirtual io.netty.handler.codec.AsciiHeadersEncoder$NewlineType.ordinal:()I
iaload
tableswitch { // 1 - 2
1: 20
2: 22
default: 25
}
20: StackMap locals:
StackMap stack:
aload 4
iload 8
iinc 8 1
bipush 10
invokevirtual io.netty.buffer.ByteBuf.setByte:(II)Lio/netty/buffer/ByteBuf;
pop
21: goto 26
22: StackMap locals:
StackMap stack:
aload 4
iload 8
iinc 8 1
bipush 13
invokevirtual io.netty.buffer.ByteBuf.setByte:(II)Lio/netty/buffer/ByteBuf;
pop
23: aload 4
iload 8
iinc 8 1
bipush 10
invokevirtual io.netty.buffer.ByteBuf.setByte:(II)Lio/netty/buffer/ByteBuf;
pop
24: goto 26
25: StackMap locals:
StackMap stack:
new java.lang.Error
dup
invokespecial java.lang.Error.<init>:()V
athrow
26: StackMap locals:
StackMap stack:
aload 4
iload 8
invokevirtual io.netty.buffer.ByteBuf.writerIndex:(I)Lio/netty/buffer/ByteBuf;
pop
27: return
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 28 0 this Lio/netty/handler/codec/AsciiHeadersEncoder;
0 28 1 entry Ljava/util/Map$Entry<Ljava/lang/CharSequence;Ljava/lang/CharSequence;>;
1 28 2 name Ljava/lang/CharSequence;
2 28 3 value Ljava/lang/CharSequence;
3 28 4 buf Lio/netty/buffer/ByteBuf;
4 28 5 nameLen I
5 28 6 valueLen I
6 28 7 entryLen I
7 28 8 offset I
Signature: (Ljava/util/Map$Entry<Ljava/lang/CharSequence;Ljava/lang/CharSequence;>;)V
MethodParameters:
Name Flags
entry
private static void writeAscii(io.netty.buffer.ByteBuf, int, java.lang.CharSequence);
descriptor: (Lio/netty/buffer/ByteBuf;ILjava/lang/CharSequence;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
instanceof io.netty.util.AsciiString
ifeq 3
1: aload 2
checkcast io.netty.util.AsciiString
iconst_0
aload 0
iload 1
aload 2
invokeinterface java.lang.CharSequence.length:()I
invokestatic io.netty.buffer.ByteBufUtil.copy:(Lio/netty/util/AsciiString;ILio/netty/buffer/ByteBuf;II)V
2: goto 4
3: StackMap locals:
StackMap stack:
aload 0
iload 1
aload 2
getstatic io.netty.util.CharsetUtil.US_ASCII:Ljava/nio/charset/Charset;
invokevirtual io.netty.buffer.ByteBuf.setCharSequence:(ILjava/lang/CharSequence;Ljava/nio/charset/Charset;)I
pop
4: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 buf Lio/netty/buffer/ByteBuf;
0 5 1 offset I
0 5 2 value Ljava/lang/CharSequence;
MethodParameters:
Name Flags
buf
offset
value
static int[] $SWITCH_TABLE$io$netty$handler$codec$AsciiHeadersEncoder$SeparatorType();
descriptor: ()[I
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=0
0: getstatic io.netty.handler.codec.AsciiHeadersEncoder.$SWITCH_TABLE$io$netty$handler$codec$AsciiHeadersEncoder$SeparatorType:[I
dup
ifnull 1
areturn
StackMap locals:
StackMap stack: int[]
1: pop
invokestatic io.netty.handler.codec.AsciiHeadersEncoder$SeparatorType.values:()[Lio/netty/handler/codec/AsciiHeadersEncoder$SeparatorType;
arraylength
newarray 10
astore 0
2: aload 0
getstatic io.netty.handler.codec.AsciiHeadersEncoder$SeparatorType.COLON:Lio/netty/handler/codec/AsciiHeadersEncoder$SeparatorType;
invokevirtual io.netty.handler.codec.AsciiHeadersEncoder$SeparatorType.ordinal:()I
iconst_1
iastore
3: goto 5
StackMap locals: int[]
StackMap stack: java.lang.NoSuchFieldError
4: pop
StackMap locals:
StackMap stack:
5: aload 0
getstatic io.netty.handler.codec.AsciiHeadersEncoder$SeparatorType.COLON_SPACE:Lio/netty/handler/codec/AsciiHeadersEncoder$SeparatorType;
invokevirtual io.netty.handler.codec.AsciiHeadersEncoder$SeparatorType.ordinal:()I
iconst_2
iastore
6: goto 8
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
7: pop
StackMap locals:
StackMap stack:
8: aload 0
dup
putstatic io.netty.handler.codec.AsciiHeadersEncoder.$SWITCH_TABLE$io$netty$handler$codec$AsciiHeadersEncoder$SeparatorType:[I
areturn
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
2 3 4 Class java.lang.NoSuchFieldError
5 6 7 Class java.lang.NoSuchFieldError
static int[] $SWITCH_TABLE$io$netty$handler$codec$AsciiHeadersEncoder$NewlineType();
descriptor: ()[I
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=0
0: getstatic io.netty.handler.codec.AsciiHeadersEncoder.$SWITCH_TABLE$io$netty$handler$codec$AsciiHeadersEncoder$NewlineType:[I
dup
ifnull 1
areturn
StackMap locals:
StackMap stack: int[]
1: pop
invokestatic io.netty.handler.codec.AsciiHeadersEncoder$NewlineType.values:()[Lio/netty/handler/codec/AsciiHeadersEncoder$NewlineType;
arraylength
newarray 10
astore 0
2: aload 0
getstatic io.netty.handler.codec.AsciiHeadersEncoder$NewlineType.CRLF:Lio/netty/handler/codec/AsciiHeadersEncoder$NewlineType;
invokevirtual io.netty.handler.codec.AsciiHeadersEncoder$NewlineType.ordinal:()I
iconst_2
iastore
3: goto 5
StackMap locals: int[]
StackMap stack: java.lang.NoSuchFieldError
4: pop
StackMap locals:
StackMap stack:
5: aload 0
getstatic io.netty.handler.codec.AsciiHeadersEncoder$NewlineType.LF:Lio/netty/handler/codec/AsciiHeadersEncoder$NewlineType;
invokevirtual io.netty.handler.codec.AsciiHeadersEncoder$NewlineType.ordinal:()I
iconst_1
iastore
6: goto 8
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
7: pop
StackMap locals:
StackMap stack:
8: aload 0
dup
putstatic io.netty.handler.codec.AsciiHeadersEncoder.$SWITCH_TABLE$io$netty$handler$codec$AsciiHeadersEncoder$NewlineType:[I
areturn
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
2 3 4 Class java.lang.NoSuchFieldError
5 6 7 Class java.lang.NoSuchFieldError
}
SourceFile: "AsciiHeadersEncoder.java"
NestMembers:
io.netty.handler.codec.AsciiHeadersEncoder$NewlineType io.netty.handler.codec.AsciiHeadersEncoder$SeparatorType
InnerClasses:
public final NewlineType = io.netty.handler.codec.AsciiHeadersEncoder$NewlineType of io.netty.handler.codec.AsciiHeadersEncoder
public final SeparatorType = io.netty.handler.codec.AsciiHeadersEncoder$SeparatorType of io.netty.handler.codec.AsciiHeadersEncoder
public abstract Entry = java.util.Map$Entry of java.util.Map