public class io.netty.handler.codec.compression.JZlibEncoder 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.JZlibEncoder
super_class: io.netty.handler.codec.compression.ZlibEncoder
{
private final int wrapperOverhead;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final com.jcraft.jzlib.Deflater z;
descriptor: Lcom/jcraft/jzlib/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
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.JZlibEncoder.<init>:(I)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/handler/codec/compression/JZlibEncoder;
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.JZlibEncoder.<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/JZlibEncoder;
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.JZlibEncoder.<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/JZlibEncoder;
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=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
iload 2
bipush 15
bipush 8
invokespecial io.netty.handler.codec.compression.JZlibEncoder.<init>:(Lio/netty/handler/codec/compression/ZlibWrapper;III)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/handler/codec/compression/JZlibEncoder;
0 2 1 wrapper Lio/netty/handler/codec/compression/ZlibWrapper;
0 2 2 compressionLevel I
MethodParameters:
Name Flags
wrapper
compressionLevel
public void <init>(io.netty.handler.codec.compression.ZlibWrapper, int, int, int);
descriptor: (Lio/netty/handler/codec/compression/ZlibWrapper;III)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokespecial io.netty.handler.codec.compression.ZlibEncoder.<init>:()V
1: aload 0
new com.jcraft.jzlib.Deflater
dup
invokespecial com.jcraft.jzlib.Deflater.<init>:()V
putfield io.netty.handler.codec.compression.JZlibEncoder.z:Lcom/jcraft/jzlib/Deflater;
2: iload 2
iflt 3
iload 2
bipush 9
if_icmple 8
3: StackMap locals: io.netty.handler.codec.compression.JZlibEncoder io.netty.handler.codec.compression.ZlibWrapper int int int
StackMap stack:
new java.lang.IllegalArgumentException
dup
4: 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;
5: ldc " (expected: 0-9)"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
6: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
7: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals:
StackMap stack:
iload 3
bipush 9
if_icmplt 9
iload 3
bipush 15
if_icmple 12
9: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
10: new java.lang.StringBuilder
dup
ldc "windowBits: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 3
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " (expected: 9-15)"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
11: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
12: StackMap locals:
StackMap stack:
iload 4
iconst_1
if_icmplt 13
iload 4
bipush 9
if_icmple 16
13: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
14: new java.lang.StringBuilder
dup
ldc "memLevel: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 4
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " (expected: 1-9)"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
15: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
16: StackMap locals:
StackMap stack:
aload 1
ifnonnull 18
17: new java.lang.NullPointerException
dup
ldc "wrapper"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
18: StackMap locals:
StackMap stack:
aload 1
getstatic io.netty.handler.codec.compression.ZlibWrapper.ZLIB_OR_NONE:Lio/netty/handler/codec/compression/ZlibWrapper;
if_acmpne 24
19: new java.lang.IllegalArgumentException
dup
20: 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;
21: ldc "allowed for compression."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
22: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
23: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
24: StackMap locals:
StackMap stack:
aload 0
getfield io.netty.handler.codec.compression.JZlibEncoder.z:Lcom/jcraft/jzlib/Deflater;
25: iload 2
iload 3
iload 4
26: aload 1
invokestatic io.netty.handler.codec.compression.ZlibUtil.convertWrapperType:(Lio/netty/handler/codec/compression/ZlibWrapper;)Lcom/jcraft/jzlib/JZlib$WrapperType;
27: invokevirtual com.jcraft.jzlib.Deflater.init:(IIILcom/jcraft/jzlib/JZlib$WrapperType;)I
istore 5
start local 5 28: iload 5
ifeq 30
29: aload 0
getfield io.netty.handler.codec.compression.JZlibEncoder.z:Lcom/jcraft/jzlib/Deflater;
ldc "initialization failure"
iload 5
invokestatic io.netty.handler.codec.compression.ZlibUtil.fail:(Lcom/jcraft/jzlib/Deflater;Ljava/lang/String;I)V
30: StackMap locals: int
StackMap stack:
aload 0
aload 1
invokestatic io.netty.handler.codec.compression.ZlibUtil.wrapperOverhead:(Lio/netty/handler/codec/compression/ZlibWrapper;)I
putfield io.netty.handler.codec.compression.JZlibEncoder.wrapperOverhead:I
31: return
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 32 0 this Lio/netty/handler/codec/compression/JZlibEncoder;
0 32 1 wrapper Lio/netty/handler/codec/compression/ZlibWrapper;
0 32 2 compressionLevel I
0 32 3 windowBits I
0 32 4 memLevel I
28 32 5 resultCode I
MethodParameters:
Name Flags
wrapper
compressionLevel
windowBits
memLevel
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.JZlibEncoder.<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/JZlibEncoder;
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
iload 1
bipush 15
bipush 8
aload 2
invokespecial io.netty.handler.codec.compression.JZlibEncoder.<init>:(III[B)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/handler/codec/compression/JZlibEncoder;
0 2 1 compressionLevel I
0 2 2 dictionary [B
MethodParameters:
Name Flags
compressionLevel
dictionary
public void <init>(int, int, int, byte[]);
descriptor: (III[B)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokespecial io.netty.handler.codec.compression.ZlibEncoder.<init>:()V
1: aload 0
new com.jcraft.jzlib.Deflater
dup
invokespecial com.jcraft.jzlib.Deflater.<init>:()V
putfield io.netty.handler.codec.compression.JZlibEncoder.z:Lcom/jcraft/jzlib/Deflater;
2: iload 1
iflt 3
iload 1
bipush 9
if_icmple 4
3: StackMap locals: io.netty.handler.codec.compression.JZlibEncoder int int int byte[]
StackMap stack:
new java.lang.IllegalArgumentException
dup
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;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
iload 2
bipush 9
if_icmplt 5
iload 2
bipush 15
if_icmple 8
5: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
6: new java.lang.StringBuilder
dup
ldc "windowBits: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " (expected: 9-15)"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
7: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals:
StackMap stack:
iload 3
iconst_1
if_icmplt 9
iload 3
bipush 9
if_icmple 12
9: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
10: new java.lang.StringBuilder
dup
ldc "memLevel: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 3
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " (expected: 1-9)"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
11: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
12: StackMap locals:
StackMap stack:
aload 4
ifnonnull 14
13: new java.lang.NullPointerException
dup
ldc "dictionary"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
14: StackMap locals:
StackMap stack:
aload 0
getfield io.netty.handler.codec.compression.JZlibEncoder.z:Lcom/jcraft/jzlib/Deflater;
15: iload 1
iload 2
iload 3
16: getstatic com.jcraft.jzlib.JZlib.W_ZLIB:Lcom/jcraft/jzlib/JZlib$WrapperType;
17: invokevirtual com.jcraft.jzlib.Deflater.deflateInit:(IIILcom/jcraft/jzlib/JZlib$WrapperType;)I
istore 5
start local 5 18: iload 5
ifeq 21
19: aload 0
getfield io.netty.handler.codec.compression.JZlibEncoder.z:Lcom/jcraft/jzlib/Deflater;
ldc "initialization failure"
iload 5
invokestatic io.netty.handler.codec.compression.ZlibUtil.fail:(Lcom/jcraft/jzlib/Deflater;Ljava/lang/String;I)V
20: goto 24
21: StackMap locals: int
StackMap stack:
aload 0
getfield io.netty.handler.codec.compression.JZlibEncoder.z:Lcom/jcraft/jzlib/Deflater;
aload 4
aload 4
arraylength
invokevirtual com.jcraft.jzlib.Deflater.deflateSetDictionary:([BI)I
istore 5
22: iload 5
ifeq 24
23: aload 0
getfield io.netty.handler.codec.compression.JZlibEncoder.z:Lcom/jcraft/jzlib/Deflater;
ldc "failed to set the dictionary"
iload 5
invokestatic io.netty.handler.codec.compression.ZlibUtil.fail:(Lcom/jcraft/jzlib/Deflater;Ljava/lang/String;I)V
24: StackMap locals:
StackMap stack:
aload 0
getstatic io.netty.handler.codec.compression.ZlibWrapper.ZLIB:Lio/netty/handler/codec/compression/ZlibWrapper;
invokestatic io.netty.handler.codec.compression.ZlibUtil.wrapperOverhead:(Lio/netty/handler/codec/compression/ZlibWrapper;)I
putfield io.netty.handler.codec.compression.JZlibEncoder.wrapperOverhead:I
25: return
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 26 0 this Lio/netty/handler/codec/compression/JZlibEncoder;
0 26 1 compressionLevel I
0 26 2 windowBits I
0 26 3 memLevel I
0 26 4 dictionary [B
18 26 5 resultCode I
MethodParameters:
Name Flags
compressionLevel
windowBits
memLevel
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.JZlibEncoder.ctx:()Lio/netty/channel/ChannelHandlerContext;
invokeinterface io.netty.channel.ChannelHandlerContext.channel:()Lio/netty/channel/Channel;
invokeinterface io.netty.channel.Channel.newPromise:()Lio/netty/channel/ChannelPromise;
invokevirtual io.netty.handler.codec.compression.JZlibEncoder.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/JZlibEncoder;
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.JZlibEncoder.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.JZlibEncoder.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.JZlibEncoder$1
dup
aload 0
aload 4
aload 1
invokespecial io.netty.handler.codec.compression.JZlibEncoder$1.<init>:(Lio/netty/handler/codec/compression/JZlibEncoder;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/JZlibEncoder;
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.JZlibEncoder.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/JZlibEncoder;
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.JZlibEncoder.finished:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/handler/codec/compression/JZlibEncoder;
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=12, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield io.netty.handler.codec.compression.JZlibEncoder.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
istore 5
start local 5 7: aload 0
getfield io.netty.handler.codec.compression.JZlibEncoder.z:Lcom/jcraft/jzlib/Deflater;
iload 4
putfield com.jcraft.jzlib.Deflater.avail_in:I
8: iload 5
ifeq 12
9: aload 0
getfield io.netty.handler.codec.compression.JZlibEncoder.z:Lcom/jcraft/jzlib/Deflater;
aload 2
invokevirtual io.netty.buffer.ByteBuf.array:()[B
putfield com.jcraft.jzlib.Deflater.next_in:[B
10: aload 0
getfield io.netty.handler.codec.compression.JZlibEncoder.z:Lcom/jcraft/jzlib/Deflater;
aload 2
invokevirtual io.netty.buffer.ByteBuf.arrayOffset:()I
aload 2
invokevirtual io.netty.buffer.ByteBuf.readerIndex:()I
iadd
putfield com.jcraft.jzlib.Deflater.next_in_index:I
11: goto 16
12: StackMap locals: int
StackMap stack:
iload 4
newarray 8
astore 6
start local 6 13: aload 2
aload 2
invokevirtual io.netty.buffer.ByteBuf.readerIndex:()I
aload 6
invokevirtual io.netty.buffer.ByteBuf.getBytes:(I[B)Lio/netty/buffer/ByteBuf;
pop
14: aload 0
getfield io.netty.handler.codec.compression.JZlibEncoder.z:Lcom/jcraft/jzlib/Deflater;
aload 6
putfield com.jcraft.jzlib.Deflater.next_in:[B
15: aload 0
getfield io.netty.handler.codec.compression.JZlibEncoder.z:Lcom/jcraft/jzlib/Deflater;
iconst_0
putfield com.jcraft.jzlib.Deflater.next_in_index:I
end local 6 16: StackMap locals:
StackMap stack:
aload 0
getfield io.netty.handler.codec.compression.JZlibEncoder.z:Lcom/jcraft/jzlib/Deflater;
getfield com.jcraft.jzlib.Deflater.next_in_index:I
istore 6
start local 6 17: iload 4
i2d
ldc 1.001
dmul
invokestatic java.lang.Math.ceil:(D)D
d2i
bipush 12
iadd
aload 0
getfield io.netty.handler.codec.compression.JZlibEncoder.wrapperOverhead:I
iadd
istore 7
start local 7 18: aload 3
iload 7
invokevirtual io.netty.buffer.ByteBuf.ensureWritable:(I)Lio/netty/buffer/ByteBuf;
pop
19: aload 0
getfield io.netty.handler.codec.compression.JZlibEncoder.z:Lcom/jcraft/jzlib/Deflater;
iload 7
putfield com.jcraft.jzlib.Deflater.avail_out:I
20: aload 0
getfield io.netty.handler.codec.compression.JZlibEncoder.z:Lcom/jcraft/jzlib/Deflater;
aload 3
invokevirtual io.netty.buffer.ByteBuf.array:()[B
putfield com.jcraft.jzlib.Deflater.next_out:[B
21: aload 0
getfield io.netty.handler.codec.compression.JZlibEncoder.z:Lcom/jcraft/jzlib/Deflater;
aload 3
invokevirtual io.netty.buffer.ByteBuf.arrayOffset:()I
aload 3
invokevirtual io.netty.buffer.ByteBuf.writerIndex:()I
iadd
putfield com.jcraft.jzlib.Deflater.next_out_index:I
22: aload 0
getfield io.netty.handler.codec.compression.JZlibEncoder.z:Lcom/jcraft/jzlib/Deflater;
getfield com.jcraft.jzlib.Deflater.next_out_index:I
istore 8
start local 8 23: aload 0
getfield io.netty.handler.codec.compression.JZlibEncoder.z:Lcom/jcraft/jzlib/Deflater;
iconst_2
invokevirtual com.jcraft.jzlib.Deflater.deflate:(I)I
istore 9
start local 9 24: goto 28
end local 9 StackMap locals: io.netty.handler.codec.compression.JZlibEncoder io.netty.channel.ChannelHandlerContext io.netty.buffer.ByteBuf io.netty.buffer.ByteBuf int int int int int
StackMap stack: java.lang.Throwable
25: astore 10
26: aload 2
aload 0
getfield io.netty.handler.codec.compression.JZlibEncoder.z:Lcom/jcraft/jzlib/Deflater;
getfield com.jcraft.jzlib.Deflater.next_in_index:I
iload 6
isub
invokevirtual io.netty.buffer.ByteBuf.skipBytes:(I)Lio/netty/buffer/ByteBuf;
pop
27: aload 10
athrow
start local 9 28: StackMap locals: int
StackMap stack:
aload 2
aload 0
getfield io.netty.handler.codec.compression.JZlibEncoder.z:Lcom/jcraft/jzlib/Deflater;
getfield com.jcraft.jzlib.Deflater.next_in_index:I
iload 6
isub
invokevirtual io.netty.buffer.ByteBuf.skipBytes:(I)Lio/netty/buffer/ByteBuf;
pop
29: iload 9
ifeq 31
30: aload 0
getfield io.netty.handler.codec.compression.JZlibEncoder.z:Lcom/jcraft/jzlib/Deflater;
ldc "compression failure"
iload 9
invokestatic io.netty.handler.codec.compression.ZlibUtil.fail:(Lcom/jcraft/jzlib/Deflater;Ljava/lang/String;I)V
31: StackMap locals:
StackMap stack:
aload 0
getfield io.netty.handler.codec.compression.JZlibEncoder.z:Lcom/jcraft/jzlib/Deflater;
getfield com.jcraft.jzlib.Deflater.next_out_index:I
iload 8
isub
istore 10
start local 10 32: iload 10
ifle 39
33: aload 3
aload 3
invokevirtual io.netty.buffer.ByteBuf.writerIndex:()I
iload 10
iadd
invokevirtual io.netty.buffer.ByteBuf.writerIndex:(I)Lio/netty/buffer/ByteBuf;
pop
end local 10 end local 9 end local 8 end local 7 end local 6 end local 5 34: goto 39
StackMap locals: io.netty.handler.codec.compression.JZlibEncoder io.netty.channel.ChannelHandlerContext io.netty.buffer.ByteBuf io.netty.buffer.ByteBuf int
StackMap stack: java.lang.Throwable
35: astore 11
36: aload 0
getfield io.netty.handler.codec.compression.JZlibEncoder.z:Lcom/jcraft/jzlib/Deflater;
aconst_null
putfield com.jcraft.jzlib.Deflater.next_in:[B
37: aload 0
getfield io.netty.handler.codec.compression.JZlibEncoder.z:Lcom/jcraft/jzlib/Deflater;
aconst_null
putfield com.jcraft.jzlib.Deflater.next_out:[B
38: aload 11
athrow
39: StackMap locals:
StackMap stack:
aload 0
getfield io.netty.handler.codec.compression.JZlibEncoder.z:Lcom/jcraft/jzlib/Deflater;
aconst_null
putfield com.jcraft.jzlib.Deflater.next_in:[B
40: aload 0
getfield io.netty.handler.codec.compression.JZlibEncoder.z:Lcom/jcraft/jzlib/Deflater;
aconst_null
putfield com.jcraft.jzlib.Deflater.next_out:[B
41: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 42 0 this Lio/netty/handler/codec/compression/JZlibEncoder;
0 42 1 ctx Lio/netty/channel/ChannelHandlerContext;
0 42 2 in Lio/netty/buffer/ByteBuf;
0 42 3 out Lio/netty/buffer/ByteBuf;
4 42 4 inputLength I
7 34 5 inHasArray Z
13 16 6 array [B
17 34 6 oldNextInIndex I
18 34 7 maxOutputLength I
23 34 8 oldNextOutIndex I
24 25 9 resultCode I
28 34 9 resultCode I
32 34 10 outputLength I
Exception table:
from to target type
23 25 25 any
6 35 35 any
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
ctx
in
out
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.JZlibEncoder.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.JZlibEncoder$2
dup
aload 0
aload 1
aload 2
invokespecial io.netty.handler.codec.compression.JZlibEncoder$2.<init>:(Lio/netty/handler/codec/compression/JZlibEncoder;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.JZlibEncoder$3
dup
aload 0
aload 1
aload 2
invokespecial io.netty.handler.codec.compression.JZlibEncoder$3.<init>:(Lio/netty/handler/codec/compression/JZlibEncoder;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/JZlibEncoder;
0 7 1 ctx Lio/netty/channel/ChannelHandlerContext;
0 7 2 promise Lio/netty/channel/ChannelPromise;
1 7 3 f Lio/netty/channel/ChannelFuture;
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=4, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield io.netty.handler.codec.compression.JZlibEncoder.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.JZlibEncoder.finished:Z
4: aload 0
getfield io.netty.handler.codec.compression.JZlibEncoder.z:Lcom/jcraft/jzlib/Deflater;
getstatic io.netty.util.internal.EmptyArrays.EMPTY_BYTES:[B
putfield com.jcraft.jzlib.Deflater.next_in:[B
5: aload 0
getfield io.netty.handler.codec.compression.JZlibEncoder.z:Lcom/jcraft/jzlib/Deflater;
iconst_0
putfield com.jcraft.jzlib.Deflater.next_in_index:I
6: aload 0
getfield io.netty.handler.codec.compression.JZlibEncoder.z:Lcom/jcraft/jzlib/Deflater;
iconst_0
putfield com.jcraft.jzlib.Deflater.avail_in:I
7: bipush 32
newarray 8
astore 4
start local 4 8: aload 0
getfield io.netty.handler.codec.compression.JZlibEncoder.z:Lcom/jcraft/jzlib/Deflater;
aload 4
putfield com.jcraft.jzlib.Deflater.next_out:[B
9: aload 0
getfield io.netty.handler.codec.compression.JZlibEncoder.z:Lcom/jcraft/jzlib/Deflater;
iconst_0
putfield com.jcraft.jzlib.Deflater.next_out_index:I
10: aload 0
getfield io.netty.handler.codec.compression.JZlibEncoder.z:Lcom/jcraft/jzlib/Deflater;
aload 4
arraylength
putfield com.jcraft.jzlib.Deflater.avail_out:I
11: aload 0
getfield io.netty.handler.codec.compression.JZlibEncoder.z:Lcom/jcraft/jzlib/Deflater;
iconst_4
invokevirtual com.jcraft.jzlib.Deflater.deflate:(I)I
istore 5
start local 5 12: iload 5
ifeq 19
iload 5
iconst_1
if_icmpeq 19
13: aload 2
aload 0
getfield io.netty.handler.codec.compression.JZlibEncoder.z:Lcom/jcraft/jzlib/Deflater;
ldc "compression failure"
iload 5
invokestatic io.netty.handler.codec.compression.ZlibUtil.deflaterException:(Lcom/jcraft/jzlib/Deflater;Ljava/lang/String;I)Lio/netty/handler/codec/compression/CompressionException;
invokeinterface io.netty.channel.ChannelPromise.setFailure:(Ljava/lang/Throwable;)Lio/netty/channel/ChannelPromise;
pop
14: aload 2
astore 7
15: aload 0
getfield io.netty.handler.codec.compression.JZlibEncoder.z:Lcom/jcraft/jzlib/Deflater;
invokevirtual com.jcraft.jzlib.Deflater.deflateEnd:()I
pop
16: aload 0
getfield io.netty.handler.codec.compression.JZlibEncoder.z:Lcom/jcraft/jzlib/Deflater;
aconst_null
putfield com.jcraft.jzlib.Deflater.next_in:[B
17: aload 0
getfield io.netty.handler.codec.compression.JZlibEncoder.z:Lcom/jcraft/jzlib/Deflater;
aconst_null
putfield com.jcraft.jzlib.Deflater.next_out:[B
18: aload 7
areturn
19: StackMap locals: io.netty.handler.codec.compression.JZlibEncoder io.netty.channel.ChannelHandlerContext io.netty.channel.ChannelPromise top byte[] int
StackMap stack:
aload 0
getfield io.netty.handler.codec.compression.JZlibEncoder.z:Lcom/jcraft/jzlib/Deflater;
getfield com.jcraft.jzlib.Deflater.next_out_index:I
ifeq 22
20: aload 4
iconst_0
aload 0
getfield io.netty.handler.codec.compression.JZlibEncoder.z:Lcom/jcraft/jzlib/Deflater;
getfield com.jcraft.jzlib.Deflater.next_out_index:I
invokestatic io.netty.buffer.Unpooled.wrappedBuffer:([BII)Lio/netty/buffer/ByteBuf;
astore 3
start local 3 21: goto 29
end local 3 22: StackMap locals:
StackMap stack:
getstatic io.netty.buffer.Unpooled.EMPTY_BUFFER:Lio/netty/buffer/ByteBuf;
astore 3
end local 5 end local 4 start local 3 23: goto 29
end local 3 StackMap locals: io.netty.handler.codec.compression.JZlibEncoder io.netty.channel.ChannelHandlerContext io.netty.channel.ChannelPromise
StackMap stack: java.lang.Throwable
24: astore 6
25: aload 0
getfield io.netty.handler.codec.compression.JZlibEncoder.z:Lcom/jcraft/jzlib/Deflater;
invokevirtual com.jcraft.jzlib.Deflater.deflateEnd:()I
pop
26: aload 0
getfield io.netty.handler.codec.compression.JZlibEncoder.z:Lcom/jcraft/jzlib/Deflater;
aconst_null
putfield com.jcraft.jzlib.Deflater.next_in:[B
27: aload 0
getfield io.netty.handler.codec.compression.JZlibEncoder.z:Lcom/jcraft/jzlib/Deflater;
aconst_null
putfield com.jcraft.jzlib.Deflater.next_out:[B
28: aload 6
athrow
start local 3 29: StackMap locals: io.netty.buffer.ByteBuf
StackMap stack:
aload 0
getfield io.netty.handler.codec.compression.JZlibEncoder.z:Lcom/jcraft/jzlib/Deflater;
invokevirtual com.jcraft.jzlib.Deflater.deflateEnd:()I
pop
30: aload 0
getfield io.netty.handler.codec.compression.JZlibEncoder.z:Lcom/jcraft/jzlib/Deflater;
aconst_null
putfield com.jcraft.jzlib.Deflater.next_in:[B
31: aload 0
getfield io.netty.handler.codec.compression.JZlibEncoder.z:Lcom/jcraft/jzlib/Deflater;
aconst_null
putfield com.jcraft.jzlib.Deflater.next_out:[B
32: 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 33 0 this Lio/netty/handler/codec/compression/JZlibEncoder;
0 33 1 ctx Lio/netty/channel/ChannelHandlerContext;
0 33 2 promise Lio/netty/channel/ChannelPromise;
21 22 3 footer Lio/netty/buffer/ByteBuf;
23 24 3 footer Lio/netty/buffer/ByteBuf;
29 33 3 footer Lio/netty/buffer/ByteBuf;
8 23 4 out [B
12 23 5 resultCode I
Exception table:
from to target type
4 15 24 any
19 24 24 any
MethodParameters:
Name Flags
ctx
promise
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.JZlibEncoder.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/JZlibEncoder;
0 2 1 ctx Lio/netty/channel/ChannelHandlerContext;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
ctx
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.JZlibEncoder.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
}
SourceFile: "JZlibEncoder.java"
NestMembers:
io.netty.handler.codec.compression.JZlibEncoder$1 io.netty.handler.codec.compression.JZlibEncoder$2 io.netty.handler.codec.compression.JZlibEncoder$3
InnerClasses:
public final WrapperType = com.jcraft.jzlib.JZlib$WrapperType of com.jcraft.jzlib.JZlib
io.netty.handler.codec.compression.JZlibEncoder$1
io.netty.handler.codec.compression.JZlibEncoder$2
io.netty.handler.codec.compression.JZlibEncoder$3