public class io.netty.handler.codec.spdy.SpdyHeaderBlockRawEncoder extends io.netty.handler.codec.spdy.SpdyHeaderBlockEncoder
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.netty.handler.codec.spdy.SpdyHeaderBlockRawEncoder
super_class: io.netty.handler.codec.spdy.SpdyHeaderBlockEncoder
{
private final int version;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(io.netty.handler.codec.spdy.SpdyVersion);
descriptor: (Lio/netty/handler/codec/spdy/SpdyVersion;)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.spdy.SpdyHeaderBlockEncoder.<init>:()V
1: aload 1
ifnonnull 3
2: new java.lang.NullPointerException
dup
ldc "version"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: io.netty.handler.codec.spdy.SpdyHeaderBlockRawEncoder io.netty.handler.codec.spdy.SpdyVersion
StackMap stack:
aload 0
aload 1
invokevirtual io.netty.handler.codec.spdy.SpdyVersion.getVersion:()I
putfield io.netty.handler.codec.spdy.SpdyHeaderBlockRawEncoder.version:I
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/netty/handler/codec/spdy/SpdyHeaderBlockRawEncoder;
0 5 1 version Lio/netty/handler/codec/spdy/SpdyVersion;
MethodParameters:
Name Flags
version
private static void setLengthField(io.netty.buffer.ByteBuf, int, int);
descriptor: (Lio/netty/buffer/ByteBuf;II)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iload 1
iload 2
invokevirtual io.netty.buffer.ByteBuf.setInt:(II)Lio/netty/buffer/ByteBuf;
pop
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 buffer Lio/netty/buffer/ByteBuf;
0 2 1 writerIndex I
0 2 2 length I
MethodParameters:
Name Flags
buffer
writerIndex
length
private static void writeLengthField(io.netty.buffer.ByteBuf, int);
descriptor: (Lio/netty/buffer/ByteBuf;I)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
invokevirtual io.netty.buffer.ByteBuf.writeInt:(I)Lio/netty/buffer/ByteBuf;
pop
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 buffer Lio/netty/buffer/ByteBuf;
0 2 1 length I
MethodParameters:
Name Flags
buffer
length
public io.netty.buffer.ByteBuf encode(io.netty.buffer.ByteBufAllocator, io.netty.handler.codec.spdy.SpdyHeadersFrame);
descriptor: (Lio/netty/buffer/ByteBufAllocator;Lio/netty/handler/codec/spdy/SpdyHeadersFrame;)Lio/netty/buffer/ByteBuf;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=13, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokeinterface io.netty.handler.codec.spdy.SpdyHeadersFrame.headers:()Lio/netty/handler/codec/spdy/SpdyHeaders;
invokeinterface io.netty.handler.codec.spdy.SpdyHeaders.names:()Ljava/util/Set;
astore 3
start local 3 1: aload 3
invokeinterface java.util.Set.size:()I
istore 4
start local 4 2: iload 4
ifne 4
3: getstatic io.netty.buffer.Unpooled.EMPTY_BUFFER:Lio/netty/buffer/ByteBuf;
areturn
4: StackMap locals: java.util.Set int
StackMap stack:
iload 4
ldc 65535
if_icmple 8
5: new java.lang.IllegalArgumentException
dup
6: ldc "header block contains too many headers"
7: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals:
StackMap stack:
aload 1
invokeinterface io.netty.buffer.ByteBufAllocator.heapBuffer:()Lio/netty/buffer/ByteBuf;
astore 5
start local 5 9: aload 5
iload 4
invokestatic io.netty.handler.codec.spdy.SpdyHeaderBlockRawEncoder.writeLengthField:(Lio/netty/buffer/ByteBuf;I)V
10: aload 3
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 7
goto 34
StackMap locals: io.netty.handler.codec.spdy.SpdyHeaderBlockRawEncoder io.netty.buffer.ByteBufAllocator io.netty.handler.codec.spdy.SpdyHeadersFrame java.util.Set int io.netty.buffer.ByteBuf top java.util.Iterator
StackMap stack:
11: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.CharSequence
astore 6
start local 6 12: aload 5
aload 6
invokeinterface java.lang.CharSequence.length:()I
invokestatic io.netty.handler.codec.spdy.SpdyHeaderBlockRawEncoder.writeLengthField:(Lio/netty/buffer/ByteBuf;I)V
13: aload 5
aload 6
invokestatic io.netty.buffer.ByteBufUtil.writeAscii:(Lio/netty/buffer/ByteBuf;Ljava/lang/CharSequence;)I
pop
14: aload 5
invokevirtual io.netty.buffer.ByteBuf.writerIndex:()I
istore 8
start local 8 15: iconst_0
istore 9
start local 9 16: aload 5
iload 9
invokestatic io.netty.handler.codec.spdy.SpdyHeaderBlockRawEncoder.writeLengthField:(Lio/netty/buffer/ByteBuf;I)V
17: aload 2
invokeinterface io.netty.handler.codec.spdy.SpdyHeadersFrame.headers:()Lio/netty/handler/codec/spdy/SpdyHeaders;
aload 6
invokeinterface io.netty.handler.codec.spdy.SpdyHeaders.getAll:(Ljava/lang/Object;)Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 11
goto 24
StackMap locals: io.netty.handler.codec.spdy.SpdyHeaderBlockRawEncoder io.netty.buffer.ByteBufAllocator io.netty.handler.codec.spdy.SpdyHeadersFrame java.util.Set int io.netty.buffer.ByteBuf java.lang.CharSequence java.util.Iterator int int top java.util.Iterator
StackMap stack:
18: aload 11
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.CharSequence
astore 10
start local 10 19: aload 10
invokeinterface java.lang.CharSequence.length:()I
istore 12
start local 12 20: iload 12
ifle 24
21: aload 5
aload 10
invokestatic io.netty.buffer.ByteBufUtil.writeAscii:(Lio/netty/buffer/ByteBuf;Ljava/lang/CharSequence;)I
pop
22: aload 5
iconst_0
invokevirtual io.netty.buffer.ByteBuf.writeByte:(I)Lio/netty/buffer/ByteBuf;
pop
23: iload 9
iload 12
iconst_1
iadd
iadd
istore 9
end local 12 end local 10 24: StackMap locals:
StackMap stack:
aload 11
invokeinterface java.util.Iterator.hasNext:()Z
ifne 18
25: iload 9
ifeq 27
26: iinc 9 -1
27: StackMap locals: io.netty.handler.codec.spdy.SpdyHeaderBlockRawEncoder io.netty.buffer.ByteBufAllocator io.netty.handler.codec.spdy.SpdyHeadersFrame java.util.Set int io.netty.buffer.ByteBuf java.lang.CharSequence java.util.Iterator int int
StackMap stack:
iload 9
ldc 65535
if_icmple 31
28: new java.lang.IllegalArgumentException
dup
29: new java.lang.StringBuilder
dup
ldc "header exceeds allowable length: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 6
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
30: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
31: StackMap locals:
StackMap stack:
iload 9
ifle 34
32: aload 5
iload 8
iload 9
invokestatic io.netty.handler.codec.spdy.SpdyHeaderBlockRawEncoder.setLengthField:(Lio/netty/buffer/ByteBuf;II)V
33: aload 5
aload 5
invokevirtual io.netty.buffer.ByteBuf.writerIndex:()I
iconst_1
isub
invokevirtual io.netty.buffer.ByteBuf.writerIndex:(I)Lio/netty/buffer/ByteBuf;
pop
end local 9 end local 8 end local 6 34: StackMap locals: io.netty.handler.codec.spdy.SpdyHeaderBlockRawEncoder io.netty.buffer.ByteBufAllocator io.netty.handler.codec.spdy.SpdyHeadersFrame java.util.Set int io.netty.buffer.ByteBuf top java.util.Iterator
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 11
35: aload 5
areturn
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 36 0 this Lio/netty/handler/codec/spdy/SpdyHeaderBlockRawEncoder;
0 36 1 alloc Lio/netty/buffer/ByteBufAllocator;
0 36 2 frame Lio/netty/handler/codec/spdy/SpdyHeadersFrame;
1 36 3 names Ljava/util/Set<Ljava/lang/CharSequence;>;
2 36 4 numHeaders I
9 36 5 headerBlock Lio/netty/buffer/ByteBuf;
12 34 6 name Ljava/lang/CharSequence;
15 34 8 savedIndex I
16 34 9 valueLength I
19 24 10 value Ljava/lang/CharSequence;
20 24 12 length I
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
alloc
frame
void end();
descriptor: ()V
flags: (0x0000)
Code:
stack=0, locals=1, args_size=1
start local 0 0: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/handler/codec/spdy/SpdyHeaderBlockRawEncoder;
}
SourceFile: "SpdyHeaderBlockRawEncoder.java"