io.netty.handler.codec.compression.JZlibEncoder.class Maven / Gradle / Ivy
???? 2s /io/netty/handler/codec/compression/JZlibEncoder .io/netty/handler/codec/compression/ZlibEncoder JZlibEncoder.java 1io/netty/handler/codec/compression/JZlibEncoder$3 1io/netty/handler/codec/compression/JZlibEncoder$2 1io/netty/handler/codec/compression/JZlibEncoder$1
9com/groupbyinc/flux/common/jcraft/jzlib/JZlib$WrapperType -com/groupbyinc/flux/common/jcraft/jzlib/JZlib WrapperType wrapperOverhead I z 2Lcom/groupbyinc/flux/common/jcraft/jzlib/Deflater; finished Z ctx (Lio/netty/channel/ChannelHandlerContext; ()V (I)V
this 1Lio/netty/handler/codec/compression/JZlibEncoder; .io/netty/handler/codec/compression/ZlibWrapper ZLIB 0Lio/netty/handler/codec/compression/ZlibWrapper; " # ! $ 4(Lio/netty/handler/codec/compression/ZlibWrapper;I)V &
' compressionLevel 3(Lio/netty/handler/codec/compression/ZlibWrapper;)V wrapper 6(Lio/netty/handler/codec/compression/ZlibWrapper;III)V ,
-
/ 0com/groupbyinc/flux/common/jcraft/jzlib/Deflater 1
2 / 4 "java/lang/IllegalArgumentException 6 java/lang/StringBuilder 8
9 / compressionLevel: ; append -(Ljava/lang/String;)Ljava/lang/StringBuilder; = >
9 ? (I)Ljava/lang/StringBuilder; = A
9 B (expected: 0-9) D toString ()Ljava/lang/String; F G
9 H (Ljava/lang/String;)V J
7 K windowBits: M (expected: 9-15) O
memLevel: Q (expected: 1-9) S java/lang/NullPointerException U +
V K ZLIB_OR_NONE Y # ! Z wrapper ' \ -(Ljava/lang/Object;)Ljava/lang/StringBuilder; = ^
9 _ !' is not allowed for compression. a +io/netty/handler/codec/compression/ZlibUtil c convertWrapperType m(Lio/netty/handler/codec/compression/ZlibWrapper;)Lcom/groupbyinc/flux/common/jcraft/jzlib/JZlib$WrapperType; e f
d g init A(IIILcom/groupbyinc/flux/common/jcraft/jzlib/JZlib$WrapperType;)I i j
2 k initialization failure m fail H(Lcom/groupbyinc/flux/common/jcraft/jzlib/Deflater;Ljava/lang/String;I)V o p
d q 3(Lio/netty/handler/codec/compression/ZlibWrapper;)I s
d t v
windowBits memLevel
resultCode ([B)V (I[B)V |
}
dictionary [B (III[B)V ?
? ? W_ZLIB ;Lcom/groupbyinc/flux/common/jcraft/jzlib/JZlib$WrapperType; ? ? ? deflateInit ? j
2 ? deflateSetDictionary ([BI)I ? ?
2 ? failed to set the dictionary ? close "()Lio/netty/channel/ChannelFuture; *()Lio/netty/channel/ChannelHandlerContext; ?
? &io/netty/channel/ChannelHandlerContext ? channel ()Lio/netty/channel/Channel; ? ? ? ? io/netty/channel/Channel ?
newPromise #()Lio/netty/channel/ChannelPromise; ? ? ? ? C(Lio/netty/channel/ChannelPromise;)Lio/netty/channel/ChannelFuture; ? ?
? executor *()Lio/netty/util/concurrent/EventExecutor; ? ? ? ? &io/netty/util/concurrent/EventExecutor ? inEventLoop ()Z ? ? ? ? finishEncode k(Lio/netty/channel/ChannelHandlerContext;Lio/netty/channel/ChannelPromise;)Lio/netty/channel/ChannelFuture; ? ?
? ? ? v(Lio/netty/handler/codec/compression/JZlibEncoder;Lio/netty/channel/ChannelPromise;Lio/netty/channel/ChannelPromise;)V ?
? execute (Ljava/lang/Runnable;)V ? ? ? ? p !Lio/netty/channel/ChannelPromise; promise (Lio/netty/util/concurrent/EventExecutor; ? java/lang/IllegalStateException ? not added to a pipeline ?
? K isClosed ? encode ](Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Lio/netty/buffer/ByteBuf;)V java/lang/Exception ? io/netty/buffer/ByteBuf ?
writeBytes 4(Lio/netty/buffer/ByteBuf;)Lio/netty/buffer/ByteBuf; ? ?
? ?
readableBytes ()I ? ?
? ? hasArray ? ?
? ? avail_in ? 2 ? array ()[B ? ?
? ? next_in ? ? 2 ? arrayOffset ? ?
? ? readerIndex ? ?
? ?
next_in_index ? 2 ? getBytes (I[B)Lio/netty/buffer/ByteBuf; ? ?
? ????t?j java/lang/Math ? ceil (D)D ? ?
? ? ensureWritable (I)Lio/netty/buffer/ByteBuf; ? ?
? ? avail_out ? 2 next_out ? 2 writerIndex ?
? next_out_index 2 deflate (I)I
2
skipBytes ?
? java/lang/Throwable compression failure ?
?
inHasArray oldNextInIndex maxOutputLength oldNextOutIndex outputLength in Lio/netty/buffer/ByteBuf; out inputLength L(Lio/netty/channel/ChannelHandlerContext;Lio/netty/channel/ChannelPromise;)V }(Lio/netty/handler/codec/compression/JZlibEncoder;Lio/netty/channel/ChannelHandlerContext;Lio/netty/channel/ChannelPromise;)V "
# io/netty/channel/ChannelFuture% addListener R(Lio/netty/util/concurrent/GenericFutureListener;)Lio/netty/channel/ChannelFuture;'(&) isDone+ ?&,
#
java/util/concurrent/TimeUnit1 SECONDS Ljava/util/concurrent/TimeUnit;34 25 schedule `(Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Lio/netty/util/concurrent/ScheduledFuture;78 ?9 f Lio/netty/channel/ChannelFuture; io/netty/channel/ChannelPromise=
setSuccess? ?>@ "io/netty/util/internal/EmptyArraysB EMPTY_BYTESD ? CE deflaterException ?(Lcom/groupbyinc/flux/common/jcraft/jzlib/Deflater;Ljava/lang/String;I)Lio/netty/handler/codec/compression/CompressionException;GH
dI
setFailure 8(Ljava/lang/Throwable;)Lio/netty/channel/ChannelPromise;KL>M
deflateEndO ?
2P io/netty/buffer/UnpooledR
wrappedBuffer ([BII)Lio/netty/buffer/ByteBuf;TU
SV EMPTY_BUFFERX SY
writeAndFlush U(Ljava/lang/Object;Lio/netty/channel/ChannelPromise;)Lio/netty/channel/ChannelFuture;[\ ?] footer handlerAdded +(Lio/netty/channel/ChannelHandlerContext;)V V(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;Lio/netty/buffer/ByteBuf;)V ? ?
c
access$000 [(Lio/netty/handler/codec/compression/JZlibEncoder;)Lio/netty/channel/ChannelHandlerContext; x0
access$100 ?(Lio/netty/handler/codec/compression/JZlibEncoder;Lio/netty/channel/ChannelHandlerContext;Lio/netty/channel/ChannelPromise;)Lio/netty/channel/ChannelFuture; x1 x2 Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions
SourceFile InnerClasses ! B B l 5 *? ? m n
2 3 l A *? %? (? m ) n
B C * l @ *+? (? m + # n
M N &