public class io.netty.handler.codec.compression.JdkZlibEncoder extends io.netty.handler.codec.compression.ZlibEncoder
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.netty.handler.codec.compression.JdkZlibEncoder
super_class: io.netty.handler.codec.compression.ZlibEncoder
{
private final io.netty.handler.codec.compression.ZlibWrapper wrapper;
descriptor: Lio/netty/handler/codec/compression/ZlibWrapper;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.zip.Deflater deflater;
descriptor: Ljava/util/zip/Deflater;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private volatile boolean finished;
descriptor: Z
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private volatile io.netty.channel.ChannelHandlerContext ctx;
descriptor: Lio/netty/channel/ChannelHandlerContext;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private final java.util.zip.CRC32 crc;
descriptor: Ljava/util/zip/CRC32;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private static final byte[] gzipHeader;
descriptor: [B
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private boolean writeHeader;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private static volatile int[] $SWITCH_TABLE$io$netty$handler$codec$compression$ZlibWrapper;
descriptor: [I
flags: (0x104a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: bipush 10
newarray 8
dup
iconst_0
bipush 31
bastore
dup
iconst_1
bipush -117
bastore
dup
iconst_2
bipush 8
bastore
putstatic io.netty.handler.codec.compression.JdkZlibEncoder.gzipHeader:[B
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
bipush 6
invokespecial io.netty.handler.codec.compression.JdkZlibEncoder.<init>:(I)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/handler/codec/compression/JdkZlibEncoder;
public void <init>(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getstatic io.netty.handler.codec.compression.ZlibWrapper.ZLIB:Lio/netty/handler/codec/compression/ZlibWrapper;
iload 1
invokespecial io.netty.handler.codec.compression.JdkZlibEncoder.<init>:(Lio/netty/handler/codec/compression/ZlibWrapper;I)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/handler/codec/compression/JdkZlibEncoder;
0 2 1 compressionLevel I
MethodParameters:
Name Flags
compressionLevel
public void <init>(io.netty.handler.codec.compression.ZlibWrapper);
descriptor: (Lio/netty/handler/codec/compression/ZlibWrapper;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
bipush 6
invokespecial io.netty.handler.codec.compression.JdkZlibEncoder.<init>:(Lio/netty/handler/codec/compression/ZlibWrapper;I)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/handler/codec/compression/JdkZlibEncoder;
0 2 1 wrapper Lio/netty/handler/codec/compression/ZlibWrapper;
MethodParameters:
Name Flags
wrapper
public void <init>(io.netty.handler.codec.compression.ZlibWrapper, int);
descriptor: (Lio/netty/handler/codec/compression/ZlibWrapper;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial io.netty.handler.codec.compression.ZlibEncoder.<init>:()V
1: aload 0
new java.util.zip.CRC32
dup
invokespecial java.util.zip.CRC32.<init>:()V
putfield io.netty.handler.codec.compression.JdkZlibEncoder.crc:Ljava/util/zip/CRC32;
2: aload 0
iconst_1
putfield io.netty.handler.codec.compression.JdkZlibEncoder.writeHeader:Z
3: iload 2
iflt 4
iload 2
bipush 9
if_icmple 7
4: StackMap locals: io.netty.handler.codec.compression.JdkZlibEncoder io.netty.handler.codec.compression.ZlibWrapper int
StackMap stack:
new java.lang.IllegalArgumentException
dup
5: new java.lang.StringBuilder
dup
ldc "compressionLevel: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " (expected: 0-9)"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
6: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
aload 1
ifnonnull 9
8: new java.lang.NullPointerException
dup
ldc "wrapper"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
9: StackMap locals:
StackMap stack:
aload 1
getstatic io.netty.handler.codec.compression.ZlibWrapper.ZLIB_OR_NONE:Lio/netty/handler/codec/compression/ZlibWrapper;
if_acmpne 15
10: new java.lang.IllegalArgumentException
dup
11: new java.lang.StringBuilder
dup
ldc "wrapper '"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
getstatic io.netty.handler.codec.compression.ZlibWrapper.ZLIB_OR_NONE:Lio/netty/handler/codec/compression/ZlibWrapper;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "' is not "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
12: ldc "allowed for compression."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
13: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
14: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
15: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield io.netty.handler.codec.compression.JdkZlibEncoder.wrapper:Lio/netty/handler/codec/compression/ZlibWrapper;
16: aload 0
17: new java.util.zip.Deflater
dup
iload 2
aload 1
getstatic io.netty.handler.codec.compression.ZlibWrapper.ZLIB:Lio/netty/handler/codec/compression/ZlibWrapper;
if_acmpeq 18
iconst_1
goto 19
StackMap locals: io.netty.handler.codec.compression.JdkZlibEncoder io.netty.handler.codec.compression.ZlibWrapper int
StackMap stack: io.netty.handler.codec.compression.JdkZlibEncoder new 17 new 17 int
18: iconst_0
StackMap locals: io.netty.handler.codec.compression.JdkZlibEncoder io.netty.handler.codec.compression.ZlibWrapper int
StackMap stack: io.netty.handler.codec.compression.JdkZlibEncoder new 17 new 17 int int
19: invokespecial java.util.zip.Deflater.<init>:(IZ)V
putfield io.netty.handler.codec.compression.JdkZlibEncoder.deflater:Ljava/util/zip/Deflater;
20: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lio/netty/handler/codec/compression/JdkZlibEncoder;
0 21 1 wrapper Lio/netty/handler/codec/compression/ZlibWrapper;
0 21 2 compressionLevel I
MethodParameters:
Name Flags
wrapper
compressionLevel
public void <init>(byte[]);
descriptor: ([B)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
bipush 6
aload 1
invokespecial io.netty.handler.codec.compression.JdkZlibEncoder.<init>:(I[B)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/handler/codec/compression/JdkZlibEncoder;
0 2 1 dictionary [B
MethodParameters:
Name Flags
dictionary
public void <init>(int, byte[]);
descriptor: (I[B)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial io.netty.handler.codec.compression.ZlibEncoder.<init>:()V
1: aload 0
new java.util.zip.CRC32
dup
invokespecial java.util.zip.CRC32.<init>:()V
putfield io.netty.handler.codec.compression.JdkZlibEncoder.crc:Ljava/util/zip/CRC32;
2: aload 0
iconst_1
putfield io.netty.handler.codec.compression.JdkZlibEncoder.writeHeader:Z
3: iload 1
iflt 4
iload 1
bipush 9
if_icmple 7
4: StackMap locals: io.netty.handler.codec.compression.JdkZlibEncoder int byte[]
StackMap stack:
new java.lang.IllegalArgumentException
dup
5: new java.lang.StringBuilder
dup
ldc "compressionLevel: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " (expected: 0-9)"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
6: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
aload 2
ifnonnull 9
8: new java.lang.NullPointerException
dup
ldc "dictionary"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
9: StackMap locals:
StackMap stack:
aload 0
getstatic io.netty.handler.codec.compression.ZlibWrapper.ZLIB:Lio/netty/handler/codec/compression/ZlibWrapper;
putfield io.netty.handler.codec.compression.JdkZlibEncoder.wrapper:Lio/netty/handler/codec/compression/ZlibWrapper;
10: aload 0
new java.util.zip.Deflater
dup
iload 1
invokespecial java.util.zip.Deflater.<init>:(I)V
putfield io.netty.handler.codec.compression.JdkZlibEncoder.deflater:Ljava/util/zip/Deflater;
11: aload 0
getfield io.netty.handler.codec.compression.JdkZlibEncoder.deflater:Ljava/util/zip/Deflater;
aload 2
invokevirtual java.util.zip.Deflater.setDictionary:([B)V
12: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lio/netty/handler/codec/compression/JdkZlibEncoder;
0 13 1 compressionLevel I
0 13 2 dictionary [B
MethodParameters:
Name Flags
compressionLevel
dictionary
public io.netty.channel.ChannelFuture close();
descriptor: ()Lio/netty/channel/ChannelFuture;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aload 0
invokevirtual io.netty.handler.codec.compression.JdkZlibEncoder.ctx:()Lio/netty/channel/ChannelHandlerContext;
invokeinterface io.netty.channel.ChannelHandlerContext.newPromise:()Lio/netty/channel/ChannelPromise;
invokevirtual io.netty.handler.codec.compression.JdkZlibEncoder.close:(Lio/netty/channel/ChannelPromise;)Lio/netty/channel/ChannelFuture;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/handler/codec/compression/JdkZlibEncoder;
public io.netty.channel.ChannelFuture close(io.netty.channel.ChannelPromise);
descriptor: (Lio/netty/channel/ChannelPromise;)Lio/netty/channel/ChannelFuture;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=5, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual io.netty.handler.codec.compression.JdkZlibEncoder.ctx:()Lio/netty/channel/ChannelHandlerContext;
astore 2
start local 2 1: aload 2
invokeinterface io.netty.channel.ChannelHandlerContext.executor:()Lio/netty/util/concurrent/EventExecutor;
astore 3
start local 3 2: aload 3
invokeinterface io.netty.util.concurrent.EventExecutor.inEventLoop:()Z
ifeq 4
3: aload 0
aload 2
aload 1
invokevirtual io.netty.handler.codec.compression.JdkZlibEncoder.finishEncode:(Lio/netty/channel/ChannelHandlerContext;Lio/netty/channel/ChannelPromise;)Lio/netty/channel/ChannelFuture;
areturn
4: StackMap locals: io.netty.channel.ChannelHandlerContext io.netty.util.concurrent.EventExecutor
StackMap stack:
aload 2
invokeinterface io.netty.channel.ChannelHandlerContext.newPromise:()Lio/netty/channel/ChannelPromise;
astore 4
start local 4 5: aload 3
new io.netty.handler.codec.compression.JdkZlibEncoder$1
dup
aload 0
aload 4
aload 1
invokespecial io.netty.handler.codec.compression.JdkZlibEncoder$1.<init>:(Lio/netty/handler/codec/compression/JdkZlibEncoder;Lio/netty/channel/ChannelPromise;Lio/netty/channel/ChannelPromise;)V
invokeinterface io.netty.util.concurrent.EventExecutor.execute:(Ljava/lang/Runnable;)V
6: aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lio/netty/handler/codec/compression/JdkZlibEncoder;
0 7 1 promise Lio/netty/channel/ChannelPromise;
1 7 2 ctx Lio/netty/channel/ChannelHandlerContext;
2 7 3 executor Lio/netty/util/concurrent/EventExecutor;
5 7 4 p Lio/netty/channel/ChannelPromise;
MethodParameters:
Name Flags
promise final
private io.netty.channel.ChannelHandlerContext ctx();
descriptor: ()Lio/netty/channel/ChannelHandlerContext;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield io.netty.handler.codec.compression.JdkZlibEncoder.ctx:Lio/netty/channel/ChannelHandlerContext;
astore 1
start local 1 1: aload 1
ifnonnull 3
2: new java.lang.IllegalStateException
dup
ldc "not added to a pipeline"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: io.netty.channel.ChannelHandlerContext
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/netty/handler/codec/compression/JdkZlibEncoder;
1 4 1 ctx Lio/netty/channel/ChannelHandlerContext;
public boolean isClosed();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.handler.codec.compression.JdkZlibEncoder.finished:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/handler/codec/compression/JdkZlibEncoder;
protected void encode(io.netty.channel.ChannelHandlerContext, io.netty.buffer.ByteBuf, io.netty.buffer.ByteBuf);
descriptor: (Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Lio/netty/buffer/ByteBuf;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield io.netty.handler.codec.compression.JdkZlibEncoder.finished:Z
ifeq 3
1: aload 3
aload 2
invokevirtual io.netty.buffer.ByteBuf.writeBytes:(Lio/netty/buffer/ByteBuf;)Lio/netty/buffer/ByteBuf;
pop
2: return
3: StackMap locals:
StackMap stack:
aload 2
invokevirtual io.netty.buffer.ByteBuf.readableBytes:()I
istore 4
start local 4 4: iload 4
ifne 6
5: return
6: StackMap locals: int
StackMap stack:
aload 2
invokevirtual io.netty.buffer.ByteBuf.hasArray:()Z
ifeq 11
7: aload 2
invokevirtual io.netty.buffer.ByteBuf.array:()[B
astore 6
start local 6 8: aload 2
invokevirtual io.netty.buffer.ByteBuf.arrayOffset:()I
aload 2
invokevirtual io.netty.buffer.ByteBuf.readerIndex:()I
iadd
istore 5
start local 5 9: aload 2
iload 4
invokevirtual io.netty.buffer.ByteBuf.skipBytes:(I)Lio/netty/buffer/ByteBuf;
pop
10: goto 14
end local 6 end local 5 11: StackMap locals:
StackMap stack:
iload 4
newarray 8
astore 6
start local 6 12: aload 2
aload 6
invokevirtual io.netty.buffer.ByteBuf.readBytes:([B)Lio/netty/buffer/ByteBuf;
pop
13: iconst_0
istore 5
start local 5 14: StackMap locals: int byte[]
StackMap stack:
aload 0
getfield io.netty.handler.codec.compression.JdkZlibEncoder.writeHeader:Z
ifeq 18
15: aload 0
iconst_0
putfield io.netty.handler.codec.compression.JdkZlibEncoder.writeHeader:Z
16: aload 0
getfield io.netty.handler.codec.compression.JdkZlibEncoder.wrapper:Lio/netty/handler/codec/compression/ZlibWrapper;
getstatic io.netty.handler.codec.compression.ZlibWrapper.GZIP:Lio/netty/handler/codec/compression/ZlibWrapper;
if_acmpne 18
17: aload 3
getstatic io.netty.handler.codec.compression.JdkZlibEncoder.gzipHeader:[B
invokevirtual io.netty.buffer.ByteBuf.writeBytes:([B)Lio/netty/buffer/ByteBuf;
pop
18: StackMap locals:
StackMap stack:
aload 0
getfield io.netty.handler.codec.compression.JdkZlibEncoder.wrapper:Lio/netty/handler/codec/compression/ZlibWrapper;
getstatic io.netty.handler.codec.compression.ZlibWrapper.GZIP:Lio/netty/handler/codec/compression/ZlibWrapper;
if_acmpne 20
19: aload 0
getfield io.netty.handler.codec.compression.JdkZlibEncoder.crc:Ljava/util/zip/CRC32;
aload 6
iload 5
iload 4
invokevirtual java.util.zip.CRC32.update:([BII)V
20: StackMap locals:
StackMap stack:
aload 0
getfield io.netty.handler.codec.compression.JdkZlibEncoder.deflater:Ljava/util/zip/Deflater;
aload 6
iload 5
iload 4
invokevirtual java.util.zip.Deflater.setInput:([BII)V
21: goto 23
22: StackMap locals:
StackMap stack:
aload 0
aload 3
invokevirtual io.netty.handler.codec.compression.JdkZlibEncoder.deflate:(Lio/netty/buffer/ByteBuf;)V
23: StackMap locals:
StackMap stack:
aload 0
getfield io.netty.handler.codec.compression.JdkZlibEncoder.deflater:Ljava/util/zip/Deflater;
invokevirtual java.util.zip.Deflater.needsInput:()Z
ifeq 22
24: return
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 25 0 this Lio/netty/handler/codec/compression/JdkZlibEncoder;
0 25 1 ctx Lio/netty/channel/ChannelHandlerContext;
0 25 2 uncompressed Lio/netty/buffer/ByteBuf;
0 25 3 out Lio/netty/buffer/ByteBuf;
4 25 4 len I
9 11 5 offset I
14 25 5 offset I
8 11 6 inAry [B
12 25 6 inAry [B
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
ctx
uncompressed
out
protected final io.netty.buffer.ByteBuf allocateBuffer(io.netty.channel.ChannelHandlerContext, io.netty.buffer.ByteBuf, boolean);
descriptor: (Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Z)Lio/netty/buffer/ByteBuf;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Code:
stack=4, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
invokevirtual io.netty.buffer.ByteBuf.readableBytes:()I
i2d
ldc 1.001
dmul
invokestatic java.lang.Math.ceil:(D)D
d2i
bipush 12
iadd
istore 4
start local 4 1: aload 0
getfield io.netty.handler.codec.compression.JdkZlibEncoder.writeHeader:Z
ifeq 6
2: invokestatic io.netty.handler.codec.compression.JdkZlibEncoder.$SWITCH_TABLE$io$netty$handler$codec$compression$ZlibWrapper:()[I
aload 0
getfield io.netty.handler.codec.compression.JdkZlibEncoder.wrapper:Lio/netty/handler/codec/compression/ZlibWrapper;
invokevirtual io.netty.handler.codec.compression.ZlibWrapper.ordinal:()I
iaload
tableswitch { // 1 - 2
1: 5
2: 3
default: 6
}
3: StackMap locals: int
StackMap stack:
iload 4
getstatic io.netty.handler.codec.compression.JdkZlibEncoder.gzipHeader:[B
arraylength
iadd
istore 4
4: goto 6
5: StackMap locals:
StackMap stack:
iinc 4 2
6: StackMap locals:
StackMap stack:
aload 1
invokeinterface io.netty.channel.ChannelHandlerContext.alloc:()Lio/netty/buffer/ByteBufAllocator;
iload 4
invokeinterface io.netty.buffer.ByteBufAllocator.heapBuffer:(I)Lio/netty/buffer/ByteBuf;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lio/netty/handler/codec/compression/JdkZlibEncoder;
0 7 1 ctx Lio/netty/channel/ChannelHandlerContext;
0 7 2 msg Lio/netty/buffer/ByteBuf;
0 7 3 preferDirect Z
1 7 4 sizeEstimate I
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
ctx
msg
preferDirect
public void close(io.netty.channel.ChannelHandlerContext, io.netty.channel.ChannelPromise);
descriptor: (Lio/netty/channel/ChannelHandlerContext;Lio/netty/channel/ChannelPromise;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 1
invokeinterface io.netty.channel.ChannelHandlerContext.newPromise:()Lio/netty/channel/ChannelPromise;
invokevirtual io.netty.handler.codec.compression.JdkZlibEncoder.finishEncode:(Lio/netty/channel/ChannelHandlerContext;Lio/netty/channel/ChannelPromise;)Lio/netty/channel/ChannelFuture;
astore 3
start local 3 1: aload 3
new io.netty.handler.codec.compression.JdkZlibEncoder$2
dup
aload 0
aload 1
aload 2
invokespecial io.netty.handler.codec.compression.JdkZlibEncoder$2.<init>:(Lio/netty/handler/codec/compression/JdkZlibEncoder;Lio/netty/channel/ChannelHandlerContext;Lio/netty/channel/ChannelPromise;)V
invokeinterface io.netty.channel.ChannelFuture.addListener:(Lio/netty/util/concurrent/GenericFutureListener;)Lio/netty/channel/ChannelFuture;
pop
2: aload 3
invokeinterface io.netty.channel.ChannelFuture.isDone:()Z
ifne 6
3: aload 1
invokeinterface io.netty.channel.ChannelHandlerContext.executor:()Lio/netty/util/concurrent/EventExecutor;
new io.netty.handler.codec.compression.JdkZlibEncoder$3
dup
aload 0
aload 1
aload 2
invokespecial io.netty.handler.codec.compression.JdkZlibEncoder$3.<init>:(Lio/netty/handler/codec/compression/JdkZlibEncoder;Lio/netty/channel/ChannelHandlerContext;Lio/netty/channel/ChannelPromise;)V
4: ldc 10
getstatic java.util.concurrent.TimeUnit.SECONDS:Ljava/util/concurrent/TimeUnit;
5: invokeinterface io.netty.util.concurrent.EventExecutor.schedule:(Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Lio/netty/util/concurrent/ScheduledFuture;
pop
6: StackMap locals: io.netty.channel.ChannelFuture
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lio/netty/handler/codec/compression/JdkZlibEncoder;
0 7 1 ctx Lio/netty/channel/ChannelHandlerContext;
0 7 2 promise Lio/netty/channel/ChannelPromise;
1 7 3 f Lio/netty/channel/ChannelFuture;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
ctx final
promise final
private io.netty.channel.ChannelFuture finishEncode(io.netty.channel.ChannelHandlerContext, io.netty.channel.ChannelPromise);
descriptor: (Lio/netty/channel/ChannelHandlerContext;Lio/netty/channel/ChannelPromise;)Lio/netty/channel/ChannelFuture;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield io.netty.handler.codec.compression.JdkZlibEncoder.finished:Z
ifeq 3
1: aload 2
invokeinterface io.netty.channel.ChannelPromise.setSuccess:()Lio/netty/channel/ChannelPromise;
pop
2: aload 2
areturn
3: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield io.netty.handler.codec.compression.JdkZlibEncoder.finished:Z
4: aload 1
invokeinterface io.netty.channel.ChannelHandlerContext.alloc:()Lio/netty/buffer/ByteBufAllocator;
invokeinterface io.netty.buffer.ByteBufAllocator.heapBuffer:()Lio/netty/buffer/ByteBuf;
astore 3
start local 3 5: aload 0
getfield io.netty.handler.codec.compression.JdkZlibEncoder.writeHeader:Z
ifeq 8
aload 0
getfield io.netty.handler.codec.compression.JdkZlibEncoder.wrapper:Lio/netty/handler/codec/compression/ZlibWrapper;
getstatic io.netty.handler.codec.compression.ZlibWrapper.GZIP:Lio/netty/handler/codec/compression/ZlibWrapper;
if_acmpne 8
6: aload 0
iconst_0
putfield io.netty.handler.codec.compression.JdkZlibEncoder.writeHeader:Z
7: aload 3
getstatic io.netty.handler.codec.compression.JdkZlibEncoder.gzipHeader:[B
invokevirtual io.netty.buffer.ByteBuf.writeBytes:([B)Lio/netty/buffer/ByteBuf;
pop
8: StackMap locals: io.netty.buffer.ByteBuf
StackMap stack:
aload 0
getfield io.netty.handler.codec.compression.JdkZlibEncoder.deflater:Ljava/util/zip/Deflater;
invokevirtual java.util.zip.Deflater.finish:()V
9: goto 14
10: StackMap locals:
StackMap stack:
aload 0
aload 3
invokevirtual io.netty.handler.codec.compression.JdkZlibEncoder.deflate:(Lio/netty/buffer/ByteBuf;)V
11: aload 3
invokevirtual io.netty.buffer.ByteBuf.isWritable:()Z
ifne 14
12: aload 1
aload 3
invokeinterface io.netty.channel.ChannelHandlerContext.write:(Ljava/lang/Object;)Lio/netty/channel/ChannelFuture;
pop
13: aload 1
invokeinterface io.netty.channel.ChannelHandlerContext.alloc:()Lio/netty/buffer/ByteBufAllocator;
invokeinterface io.netty.buffer.ByteBufAllocator.heapBuffer:()Lio/netty/buffer/ByteBuf;
astore 3
14: StackMap locals:
StackMap stack:
aload 0
getfield io.netty.handler.codec.compression.JdkZlibEncoder.deflater:Ljava/util/zip/Deflater;
invokevirtual java.util.zip.Deflater.finished:()Z
ifeq 10
15: aload 0
getfield io.netty.handler.codec.compression.JdkZlibEncoder.wrapper:Lio/netty/handler/codec/compression/ZlibWrapper;
getstatic io.netty.handler.codec.compression.ZlibWrapper.GZIP:Lio/netty/handler/codec/compression/ZlibWrapper;
if_acmpne 26
16: aload 0
getfield io.netty.handler.codec.compression.JdkZlibEncoder.crc:Ljava/util/zip/CRC32;
invokevirtual java.util.zip.CRC32.getValue:()J
l2i
istore 4
start local 4 17: aload 0
getfield io.netty.handler.codec.compression.JdkZlibEncoder.deflater:Ljava/util/zip/Deflater;
invokevirtual java.util.zip.Deflater.getTotalIn:()I
istore 5
start local 5 18: aload 3
iload 4
invokevirtual io.netty.buffer.ByteBuf.writeByte:(I)Lio/netty/buffer/ByteBuf;
pop
19: aload 3
iload 4
bipush 8
iushr
invokevirtual io.netty.buffer.ByteBuf.writeByte:(I)Lio/netty/buffer/ByteBuf;
pop
20: aload 3
iload 4
bipush 16
iushr
invokevirtual io.netty.buffer.ByteBuf.writeByte:(I)Lio/netty/buffer/ByteBuf;
pop
21: aload 3
iload 4
bipush 24
iushr
invokevirtual io.netty.buffer.ByteBuf.writeByte:(I)Lio/netty/buffer/ByteBuf;
pop
22: aload 3
iload 5
invokevirtual io.netty.buffer.ByteBuf.writeByte:(I)Lio/netty/buffer/ByteBuf;
pop
23: aload 3
iload 5
bipush 8
iushr
invokevirtual io.netty.buffer.ByteBuf.writeByte:(I)Lio/netty/buffer/ByteBuf;
pop
24: aload 3
iload 5
bipush 16
iushr
invokevirtual io.netty.buffer.ByteBuf.writeByte:(I)Lio/netty/buffer/ByteBuf;
pop
25: aload 3
iload 5
bipush 24
iushr
invokevirtual io.netty.buffer.ByteBuf.writeByte:(I)Lio/netty/buffer/ByteBuf;
pop
end local 5 end local 4 26: StackMap locals:
StackMap stack:
aload 0
getfield io.netty.handler.codec.compression.JdkZlibEncoder.deflater:Ljava/util/zip/Deflater;
invokevirtual java.util.zip.Deflater.end:()V
27: aload 1
aload 3
aload 2
invokeinterface io.netty.channel.ChannelHandlerContext.writeAndFlush:(Ljava/lang/Object;Lio/netty/channel/ChannelPromise;)Lio/netty/channel/ChannelFuture;
areturn
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/compression/JdkZlibEncoder;
0 28 1 ctx Lio/netty/channel/ChannelHandlerContext;
0 28 2 promise Lio/netty/channel/ChannelPromise;
5 28 3 footer Lio/netty/buffer/ByteBuf;
17 26 4 crcValue I
18 26 5 uncBytes I
MethodParameters:
Name Flags
ctx final
promise
private void deflate(io.netty.buffer.ByteBuf);
descriptor: (Lio/netty/buffer/ByteBuf;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: StackMap locals:
StackMap stack:
aload 1
invokevirtual io.netty.buffer.ByteBuf.writerIndex:()I
istore 3
start local 3 1: aload 0
getfield io.netty.handler.codec.compression.JdkZlibEncoder.deflater:Ljava/util/zip/Deflater;
2: aload 1
invokevirtual io.netty.buffer.ByteBuf.array:()[B
aload 1
invokevirtual io.netty.buffer.ByteBuf.arrayOffset:()I
iload 3
iadd
aload 1
invokevirtual io.netty.buffer.ByteBuf.writableBytes:()I
iconst_2
3: invokevirtual java.util.zip.Deflater.deflate:([BIII)I
istore 2
start local 2 4: aload 1
iload 3
iload 2
iadd
invokevirtual io.netty.buffer.ByteBuf.writerIndex:(I)Lio/netty/buffer/ByteBuf;
pop
end local 3 5: iload 2
6: ifgt 0
7: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lio/netty/handler/codec/compression/JdkZlibEncoder;
0 8 1 out Lio/netty/buffer/ByteBuf;
4 8 2 numBytes I
1 5 3 writerIndex I
MethodParameters:
Name Flags
out
public void handlerAdded(io.netty.channel.ChannelHandlerContext);
descriptor: (Lio/netty/channel/ChannelHandlerContext;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield io.netty.handler.codec.compression.JdkZlibEncoder.ctx:Lio/netty/channel/ChannelHandlerContext;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/handler/codec/compression/JdkZlibEncoder;
0 2 1 ctx Lio/netty/channel/ChannelHandlerContext;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
ctx
protected io.netty.buffer.ByteBuf allocateBuffer(io.netty.channel.ChannelHandlerContext, java.lang.Object, boolean);
descriptor: (Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;Z)Lio/netty/buffer/ByteBuf;
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.buffer.ByteBuf
iload 3
invokevirtual io.netty.handler.codec.compression.JdkZlibEncoder.allocateBuffer:(Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Z)Lio/netty/buffer/ByteBuf;
areturn
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws java.lang.Exception
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.buffer.ByteBuf
aload 3
invokevirtual io.netty.handler.codec.compression.JdkZlibEncoder.encode:(Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Lio/netty/buffer/ByteBuf;)V
return
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws java.lang.Exception
static int[] $SWITCH_TABLE$io$netty$handler$codec$compression$ZlibWrapper();
descriptor: ()[I
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=0
0: getstatic io.netty.handler.codec.compression.JdkZlibEncoder.$SWITCH_TABLE$io$netty$handler$codec$compression$ZlibWrapper:[I
dup
ifnull 1
areturn
StackMap locals:
StackMap stack: int[]
1: pop
invokestatic io.netty.handler.codec.compression.ZlibWrapper.values:()[Lio/netty/handler/codec/compression/ZlibWrapper;
arraylength
newarray 10
astore 0
2: aload 0
getstatic io.netty.handler.codec.compression.ZlibWrapper.GZIP:Lio/netty/handler/codec/compression/ZlibWrapper;
invokevirtual io.netty.handler.codec.compression.ZlibWrapper.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.compression.ZlibWrapper.NONE:Lio/netty/handler/codec/compression/ZlibWrapper;
invokevirtual io.netty.handler.codec.compression.ZlibWrapper.ordinal:()I
iconst_3
iastore
6: goto 8
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
7: pop
StackMap locals:
StackMap stack:
8: aload 0
getstatic io.netty.handler.codec.compression.ZlibWrapper.ZLIB:Lio/netty/handler/codec/compression/ZlibWrapper;
invokevirtual io.netty.handler.codec.compression.ZlibWrapper.ordinal:()I
iconst_1
iastore
9: goto 11
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
10: pop
StackMap locals:
StackMap stack:
11: aload 0
getstatic io.netty.handler.codec.compression.ZlibWrapper.ZLIB_OR_NONE:Lio/netty/handler/codec/compression/ZlibWrapper;
invokevirtual io.netty.handler.codec.compression.ZlibWrapper.ordinal:()I
iconst_4
iastore
12: goto 14
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
13: pop
StackMap locals:
StackMap stack:
14: aload 0
dup
putstatic io.netty.handler.codec.compression.JdkZlibEncoder.$SWITCH_TABLE$io$netty$handler$codec$compression$ZlibWrapper:[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
8 9 10 Class java.lang.NoSuchFieldError
11 12 13 Class java.lang.NoSuchFieldError
}
SourceFile: "JdkZlibEncoder.java"
NestMembers:
io.netty.handler.codec.compression.JdkZlibEncoder$1 io.netty.handler.codec.compression.JdkZlibEncoder$2 io.netty.handler.codec.compression.JdkZlibEncoder$3
InnerClasses:
io.netty.handler.codec.compression.JdkZlibEncoder$1
io.netty.handler.codec.compression.JdkZlibEncoder$2
io.netty.handler.codec.compression.JdkZlibEncoder$3