classes.io.netty.handler.codec.compression.JdkZlibEncoder.class Maven / Gradle / Ivy
???? 2k
b ?
b ?
b ? ? ?
b ?
c ? ?
? b ? b ? ? ?
? ?
?
? ?
?
? ? g
? ? ? ?
? ? ? b ? ?
? b ?
b ? ?
?
? ? ?
b ? ? ? ? ? ?
( ? ? ? b ? ? ?
, ? b ?
_ ?
_ ?
_ ?
_ ?
_ ?
_ ?
_ ?
_ ? ? ? b ?
_ ?
?
?
?
b ????t?j
? ? d ?
? ? ? ? ? ?
F
J
?
?
_ ?
_
?
_
_
_
b
b InnerClasses wrapper 0Lio/netty/handler/codec/compression/ZlibWrapper; deflater Ljava/util/zip/Deflater; finished Z ctx (Lio/netty/channel/ChannelHandlerContext; crc Ljava/util/zip/CRC32;
gzipHeader [B writeHeader ()V Code LineNumberTable LocalVariableTable this 3Lio/netty/handler/codec/compression/JdkZlibEncoder; (I)V compressionLevel I 3(Lio/netty/handler/codec/compression/ZlibWrapper;)V 4(Lio/netty/handler/codec/compression/ZlibWrapper;I)V
StackMapTable ([B)V
dictionary (I[B)V r close "()Lio/netty/channel/ChannelFuture; C(Lio/netty/channel/ChannelPromise;)Lio/netty/channel/ChannelFuture; p !Lio/netty/channel/ChannelPromise; promise executor (Lio/netty/util/concurrent/EventExecutor; ! *()Lio/netty/channel/ChannelHandlerContext; isClosed ()Z encode ](Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Lio/netty/buffer/ByteBuf;)V offset inAry uncompressed Lio/netty/buffer/ByteBuf; out len
Exceptions" allocateBuffer ](Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Z)Lio/netty/buffer/ByteBuf; msg preferDirect sizeEstimate L(Lio/netty/channel/ChannelHandlerContext;Lio/netty/channel/ChannelPromise;)V f Lio/netty/channel/ChannelFuture;# finishEncode k(Lio/netty/channel/ChannelHandlerContext;Lio/netty/channel/ChannelPromise;)Lio/netty/channel/ChannelFuture; crcValue uncBytes footer deflate (Lio/netty/buffer/ByteBuf;)V writerIndex numBytes handlerAdded +(Lio/netty/channel/ChannelHandlerContext;)V V(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;Lio/netty/buffer/ByteBuf;)V V(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;Z)Lio/netty/buffer/ByteBuf;
access$000 ](Lio/netty/handler/codec/compression/JdkZlibEncoder;)Lio/netty/channel/ChannelHandlerContext; x0
access$100 ?(Lio/netty/handler/codec/compression/JdkZlibEncoder;Lio/netty/channel/ChannelHandlerContext;Lio/netty/channel/ChannelPromise;)Lio/netty/channel/ChannelFuture; x1 x2
SourceFile JdkZlibEncoder.java ? ? m ? t {$ h t t u java/util/zip/CRC32 o p s l "java/lang/IllegalArgumentException java/lang/StringBuilder compressionLevel: %&%' (expected: 0-9)() t* java/lang/NullPointerException+ h wrapper '%, ' is not allowed for compression. g h java/util/zip/Deflater t- i j t ?. ? /0 ? ? ?1!2 ? 3io/netty/handler/codec/compression/JdkZlibEncoder$1 t345 m n java/lang/IllegalStateException not added to a pipeline k l6789: ?;<=9>9?@ABC h q r6BDEFEG ? ? ?HIJKLM9NOPQ@ 3io/netty/handler/codec/compression/JdkZlibEncoder$2 tR#STU ? 3io/netty/handler/codec/compression/JdkZlibEncoder$3VWXYZ[\0Q]^ u k ?_ ?`abcd9e@f ugh ?9i9 ?j ?@ io/netty/buffer/ByteBuf ? ? ? ? 1io/netty/handler/codec/compression/JdkZlibEncoder .io/netty/handler/codec/compression/ZlibEncoder 3io/netty/handler/codec/compression/JdkZlibEncoder$4 .io/netty/handler/codec/compression/ZlibWrapper &io/netty/channel/ChannelHandlerContext &io/netty/util/concurrent/EventExecutor java/lang/Exception io/netty/channel/ChannelFuture ZLIB append -(Ljava/lang/String;)Ljava/lang/StringBuilder; (I)Ljava/lang/StringBuilder; toString ()Ljava/lang/String; (Ljava/lang/String;)V ZLIB_OR_NONE -(Ljava/lang/Object;)Ljava/lang/StringBuilder; (IZ)V
setDictionary
newPromise #()Lio/netty/channel/ChannelPromise; *()Lio/netty/util/concurrent/EventExecutor; inEventLoop x(Lio/netty/handler/codec/compression/JdkZlibEncoder;Lio/netty/channel/ChannelPromise;Lio/netty/channel/ChannelPromise;)V execute (Ljava/lang/Runnable;)V
writeBytes 4(Lio/netty/buffer/ByteBuf;)Lio/netty/buffer/ByteBuf;
readableBytes ()I hasArray array ()[B arrayOffset readerIndex skipBytes (I)Lio/netty/buffer/ByteBuf; readBytes ([B)Lio/netty/buffer/ByteBuf; GZIP update ([BII)V setInput
needsInput java/lang/Math ceil (D)D 9$SwitchMap$io$netty$handler$codec$compression$ZlibWrapper [I ordinal alloc $()Lio/netty/buffer/ByteBufAllocator; io/netty/buffer/ByteBufAllocator
heapBuffer (Lio/netty/handler/codec/compression/JdkZlibEncoder;Lio/netty/channel/ChannelHandlerContext;Lio/netty/channel/ChannelPromise;)V addListener R(Lio/netty/util/concurrent/GenericFutureListener;)Lio/netty/channel/ChannelFuture; isDone java/util/concurrent/TimeUnit SECONDS Ljava/util/concurrent/TimeUnit; schedule `(Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Lio/netty/util/concurrent/ScheduledFuture; io/netty/channel/ChannelPromise
setSuccess ()Lio/netty/buffer/ByteBuf; finish
isWritable write 4(Ljava/lang/Object;)Lio/netty/channel/ChannelFuture; getValue ()J
getTotalIn writeByte end
writeAndFlush U(Ljava/lang/Object;Lio/netty/channel/ChannelPromise;)Lio/netty/channel/ChannelFuture;
writableBytes ([BIII)I ! b c g h i j B k l B m n o p q r s l t u v 5 *? ? w
6 7 x y z t { v A *? ? ? w
E F x y z | } t ~ v @ *+? ? w
O P x y z g h t v L ?*? *? Y? ? *?
? ? #? Y? Y?
? ? ? ? ? ?+?
? Y? ?+? ? *? Y? Y?
? ? ? ? ? ? ? ?*+? *? Y+? ? ? ? ? ? w 2 ] + - ^ _ > b B c L e S f z k l ? m x ? y z ? g h ? | } ? D ? ? ?
-? ? ? ? ? ?? ? ? ? ? ? t ? v @ *+? ? w
z { x y z ? r t ? v ? h*? *? Y? ? *?
? ? #? Y? Y?
? ? ? ? ? ?,?
? Y!? ?*? ? *? Y? "? *? ,? #? w . ? + - ? ? > ? B ? L ? S ? _ ? g ? x h y z h | } h ? r ? ? ? ?
? ? v 8 **? ? $ ? %? w ? x y z ? ? v ? 8*? M,? & N-? ' ?
*,+? ?,? $ :-? (Y*+? )? * ? w ? ? ? ? ? $ ? 5 ? x 4 $ ? ? 8 y z 8 ? ? 3 m n , ? ? ? ? ? ? m ? v c *? +L+?
? ,Y-? .?+? w ? ? ? ? x y z m n ? ? ? ? ? v / *? /? w ? x y z ? ? v ? ?*? /?
-,? 0W?,? 16? ?,? 2? ,? 3:,? 4,? 5`6,? 6W? ?:,? 7W6*?
? *?
*? ? 8? -? 9? :W*? ? 8? *? ? ;*? ? <*? ? =? *-? >??? w ^ ? ?
? ? ? ? ? ! ? ' ? 2 ? <