class io.netty.handler.codec.http.HttpObjectDecoder$HeaderParser implements io.netty.util.ByteProcessor
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: io.netty.handler.codec.http.HttpObjectDecoder$HeaderParser
super_class: java.lang.Object
{
private final io.netty.util.internal.AppendableCharSequence seq;
descriptor: Lio/netty/util/internal/AppendableCharSequence;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int maxLength;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private int size;
descriptor: I
flags: (0x0002) ACC_PRIVATE
void <init>(io.netty.util.internal.AppendableCharSequence, int);
descriptor: (Lio/netty/util/internal/AppendableCharSequence;I)V
flags: (0x0000)
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield io.netty.handler.codec.http.HttpObjectDecoder$HeaderParser.seq:Lio/netty/util/internal/AppendableCharSequence;
2: aload 0
iload 2
putfield io.netty.handler.codec.http.HttpObjectDecoder$HeaderParser.maxLength:I
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/http/HttpObjectDecoder$HeaderParser;
0 4 1 seq Lio/netty/util/internal/AppendableCharSequence;
0 4 2 maxLength I
MethodParameters:
Name Flags
seq
maxLength
public io.netty.util.internal.AppendableCharSequence parse(io.netty.buffer.ByteBuf);
descriptor: (Lio/netty/buffer/ByteBuf;)Lio/netty/util/internal/AppendableCharSequence;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield io.netty.handler.codec.http.HttpObjectDecoder$HeaderParser.size:I
istore 2
start local 2 1: aload 0
getfield io.netty.handler.codec.http.HttpObjectDecoder$HeaderParser.seq:Lio/netty/util/internal/AppendableCharSequence;
invokevirtual io.netty.util.internal.AppendableCharSequence.reset:()V
2: aload 1
aload 0
invokevirtual io.netty.buffer.ByteBuf.forEachByte:(Lio/netty/util/ByteProcessor;)I
istore 3
start local 3 3: iload 3
iconst_m1
if_icmpne 6
4: aload 0
iload 2
putfield io.netty.handler.codec.http.HttpObjectDecoder$HeaderParser.size:I
5: aconst_null
areturn
6: StackMap locals: int int
StackMap stack:
aload 1
iload 3
iconst_1
iadd
invokevirtual io.netty.buffer.ByteBuf.readerIndex:(I)Lio/netty/buffer/ByteBuf;
pop
7: aload 0
getfield io.netty.handler.codec.http.HttpObjectDecoder$HeaderParser.seq:Lio/netty/util/internal/AppendableCharSequence;
areturn
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/http/HttpObjectDecoder$HeaderParser;
0 8 1 buffer Lio/netty/buffer/ByteBuf;
1 8 2 oldSize I
3 8 3 i I
MethodParameters:
Name Flags
buffer
public void reset();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
putfield io.netty.handler.codec.http.HttpObjectDecoder$HeaderParser.size:I
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/handler/codec/http/HttpObjectDecoder$HeaderParser;
public boolean process(byte);
descriptor: (B)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: iload 1
sipush 255
iand
i2c
istore 2
start local 2 1: iload 2
bipush 13
if_icmpne 3
2: iconst_1
ireturn
3: StackMap locals: int
StackMap stack:
iload 2
bipush 10
if_icmpne 5
4: iconst_0
ireturn
5: StackMap locals:
StackMap stack:
aload 0
dup
getfield io.netty.handler.codec.http.HttpObjectDecoder$HeaderParser.size:I
iconst_1
iadd
dup_x1
putfield io.netty.handler.codec.http.HttpObjectDecoder$HeaderParser.size:I
aload 0
getfield io.netty.handler.codec.http.HttpObjectDecoder$HeaderParser.maxLength:I
if_icmple 7
6: aload 0
aload 0
getfield io.netty.handler.codec.http.HttpObjectDecoder$HeaderParser.maxLength:I
invokevirtual io.netty.handler.codec.http.HttpObjectDecoder$HeaderParser.newException:(I)Lio/netty/handler/codec/TooLongFrameException;
athrow
7: StackMap locals:
StackMap stack:
aload 0
getfield io.netty.handler.codec.http.HttpObjectDecoder$HeaderParser.seq:Lio/netty/util/internal/AppendableCharSequence;
iload 2
invokevirtual io.netty.util.internal.AppendableCharSequence.append:(C)Lio/netty/util/internal/AppendableCharSequence;
pop
8: iconst_1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lio/netty/handler/codec/http/HttpObjectDecoder$HeaderParser;
0 9 1 value B
1 9 2 nextByte C
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
value
protected io.netty.handler.codec.TooLongFrameException newException(int);
descriptor: (I)Lio/netty/handler/codec/TooLongFrameException;
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: new io.netty.handler.codec.TooLongFrameException
dup
new java.lang.StringBuilder
dup
ldc "HTTP header is larger than "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " bytes."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial io.netty.handler.codec.TooLongFrameException.<init>:(Ljava/lang/String;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/handler/codec/http/HttpObjectDecoder$HeaderParser;
0 1 1 maxLength I
MethodParameters:
Name Flags
maxLength
}
SourceFile: "HttpObjectDecoder.java"
NestHost: io.netty.handler.codec.http.HttpObjectDecoder
InnerClasses:
private HeaderParser = io.netty.handler.codec.http.HttpObjectDecoder$HeaderParser of io.netty.handler.codec.http.HttpObjectDecoder