
com.groupbyinc.flux.common.netty.handler.codec.compression.JZlibEncoder.class Maven / Gradle / Ivy
???? 2s Gcom/groupbyinc/flux/common/netty/handler/codec/compression/JZlibEncoder Fcom/groupbyinc/flux/common/netty/handler/codec/compression/ZlibEncoder JZlibEncoder.java Icom/groupbyinc/flux/common/netty/handler/codec/compression/JZlibEncoder$3 Icom/groupbyinc/flux/common/netty/handler/codec/compression/JZlibEncoder$2 Icom/groupbyinc/flux/common/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 @Lcom/groupbyinc/flux/common/netty/channel/ChannelHandlerContext; ()V (I)V
this ILcom/groupbyinc/flux/common/netty/handler/codec/compression/JZlibEncoder; Fcom/groupbyinc/flux/common/netty/handler/codec/compression/ZlibWrapper ZLIB HLcom/groupbyinc/flux/common/netty/handler/codec/compression/ZlibWrapper; " # ! $ L(Lcom/groupbyinc/flux/common/netty/handler/codec/compression/ZlibWrapper;I)V &
' compressionLevel K(Lcom/groupbyinc/flux/common/netty/handler/codec/compression/ZlibWrapper;)V wrapper N(Lcom/groupbyinc/flux/common/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 Ccom/groupbyinc/flux/common/netty/handler/codec/compression/ZlibUtil c convertWrapperType ?(Lcom/groupbyinc/flux/common/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 K(Lcom/groupbyinc/flux/common/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 :()Lcom/groupbyinc/flux/common/netty/channel/ChannelFuture; B()Lcom/groupbyinc/flux/common/netty/channel/ChannelHandlerContext; ?
? >com/groupbyinc/flux/common/netty/channel/ChannelHandlerContext ? channel 4()Lcom/groupbyinc/flux/common/netty/channel/Channel; ? ? ? ? 0com/groupbyinc/flux/common/netty/channel/Channel ?
newPromise ;()Lcom/groupbyinc/flux/common/netty/channel/ChannelPromise; ? ? ? ? s(Lcom/groupbyinc/flux/common/netty/channel/ChannelPromise;)Lcom/groupbyinc/flux/common/netty/channel/ChannelFuture; ? ?
? executor B()Lcom/groupbyinc/flux/common/netty/util/concurrent/EventExecutor; ? ? ? ? >com/groupbyinc/flux/common/netty/util/concurrent/EventExecutor ? inEventLoop ()Z ? ? ? ? finishEncode ?(Lcom/groupbyinc/flux/common/netty/channel/ChannelHandlerContext;Lcom/groupbyinc/flux/common/netty/channel/ChannelPromise;)Lcom/groupbyinc/flux/common/netty/channel/ChannelFuture; ? ?
? ? ? ?(Lcom/groupbyinc/flux/common/netty/handler/codec/compression/JZlibEncoder;Lcom/groupbyinc/flux/common/netty/channel/ChannelPromise;Lcom/groupbyinc/flux/common/netty/channel/ChannelPromise;)V ?
? execute (Ljava/lang/Runnable;)V ? ? ? ? p 9Lcom/groupbyinc/flux/common/netty/channel/ChannelPromise; promise @Lcom/groupbyinc/flux/common/netty/util/concurrent/EventExecutor; ? java/lang/IllegalStateException ? not added to a pipeline ?
? K isClosed ? encode ?(Lcom/groupbyinc/flux/common/netty/channel/ChannelHandlerContext;Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf;Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf;)V java/lang/Exception ? /com/groupbyinc/flux/common/netty/buffer/ByteBuf ?
writeBytes d(Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf;)Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf; ? ?
? ?
readableBytes ()I ? ?
? ? hasArray ? ?
? ? avail_in ? 2 ? array ()[B ? ?
? ? next_in ? ? 2 ? arrayOffset ? ?
? ? readerIndex ? ?
? ?
next_in_index ? 2 ? getBytes 6(I[B)Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf; ? ?
? ????t?j java/lang/Math ? ceil (D)D ? ?
? ? ensureWritable 4(I)Lcom/groupbyinc/flux/common/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 1Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf; out inputLength |(Lcom/groupbyinc/flux/common/netty/channel/ChannelHandlerContext;Lcom/groupbyinc/flux/common/netty/channel/ChannelPromise;)V ?(Lcom/groupbyinc/flux/common/netty/handler/codec/compression/JZlibEncoder;Lcom/groupbyinc/flux/common/netty/channel/ChannelHandlerContext;Lcom/groupbyinc/flux/common/netty/channel/ChannelPromise;)V "
# 6com/groupbyinc/flux/common/netty/channel/ChannelFuture% addListener ?(Lcom/groupbyinc/flux/common/netty/util/concurrent/GenericFutureListener;)Lcom/groupbyinc/flux/common/netty/channel/ChannelFuture;'(&) isDone+ ?&,
#
java/util/concurrent/TimeUnit1 SECONDS Ljava/util/concurrent/TimeUnit;34 25 schedule x(Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Lcom/groupbyinc/flux/common/netty/util/concurrent/ScheduledFuture;78 ?9 f 8Lcom/groupbyinc/flux/common/netty/channel/ChannelFuture; 7com/groupbyinc/flux/common/netty/channel/ChannelPromise=
setSuccess? ?>@ :com/groupbyinc/flux/common/netty/util/internal/EmptyArraysB EMPTY_BYTESD ? CE deflaterException ?(Lcom/groupbyinc/flux/common/jcraft/jzlib/Deflater;Ljava/lang/String;I)Lcom/groupbyinc/flux/common/netty/handler/codec/compression/CompressionException;GH
dI
setFailure P(Ljava/lang/Throwable;)Lcom/groupbyinc/flux/common/netty/channel/ChannelPromise;KL>M
deflateEndO ?
2P 0com/groupbyinc/flux/common/netty/buffer/UnpooledR
wrappedBuffer 7([BII)Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf;TU
SV EMPTY_BUFFERX SY
writeAndFlush ?(Ljava/lang/Object;Lcom/groupbyinc/flux/common/netty/channel/ChannelPromise;)Lcom/groupbyinc/flux/common/netty/channel/ChannelFuture;[\ ?] footer handlerAdded C(Lcom/groupbyinc/flux/common/netty/channel/ChannelHandlerContext;)V ?(Lcom/groupbyinc/flux/common/netty/channel/ChannelHandlerContext;Ljava/lang/Object;Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf;)V ? ?
c
access$000 ?(Lcom/groupbyinc/flux/common/netty/handler/codec/compression/JZlibEncoder;)Lcom/groupbyinc/flux/common/netty/channel/ChannelHandlerContext; x0
access$100 ?(Lcom/groupbyinc/flux/common/netty/handler/codec/compression/JZlibEncoder;Lcom/groupbyinc/flux/common/netty/channel/ChannelHandlerContext;Lcom/groupbyinc/flux/common/netty/channel/ChannelPromise;)Lcom/groupbyinc/flux/common/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 &