io.netty.handler.codec.compression.JdkZlibEncoder.class Maven / Gradle / Ivy
???? 2b 1io/netty/handler/codec/compression/JdkZlibEncoder .io/netty/handler/codec/compression/ZlibEncoder JdkZlibEncoder.java 3io/netty/handler/codec/compression/JdkZlibEncoder$4 3io/netty/handler/codec/compression/JdkZlibEncoder$3 3io/netty/handler/codec/compression/JdkZlibEncoder$2
3io/netty/handler/codec/compression/JdkZlibEncoder$1 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 (I)V
this 3Lio/netty/handler/codec/compression/JdkZlibEncoder; .io/netty/handler/codec/compression/ZlibWrapper " ZLIB $ # % 4(Lio/netty/handler/codec/compression/ZlibWrapper;I)V '
( compressionLevel I 3(Lio/netty/handler/codec/compression/ZlibWrapper;)V
- java/util/zip/CRC32 /
0 - 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 java/lang/NullPointerException M
N K ZLIB_OR_NONE Q # R wrapper ' T -(Ljava/lang/Object;)Ljava/lang/StringBuilder; = V
9 W !' is not allowed for compression. Y [ java/util/zip/Deflater ] (IZ)V _
^ ` b ([B)V (I[B)V e
f
dictionary h
^
setDictionary l d
^ m close "()Lio/netty/channel/ChannelFuture; *()Lio/netty/channel/ChannelHandlerContext; q
r &io/netty/channel/ChannelHandlerContext t
newPromise #()Lio/netty/channel/ChannelPromise; v w u x C(Lio/netty/channel/ChannelPromise;)Lio/netty/channel/ChannelFuture; o z
{ executor *()Lio/netty/util/concurrent/EventExecutor; } ~ u &io/netty/util/concurrent/EventExecutor ? inEventLoop ()Z ? ? ? ? finishEncode k(Lio/netty/channel/ChannelHandlerContext;Lio/netty/channel/ChannelPromise;)Lio/netty/channel/ChannelFuture; ? ?
? x(Lio/netty/handler/codec/compression/JdkZlibEncoder;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 ? ?
? ? array ()[B ? ?
? ? arrayOffset ? ?
? ? readerIndex ? ?
? ? skipBytes (I)Lio/netty/buffer/ByteBuf; ? ?
? ? readBytes ([B)Lio/netty/buffer/ByteBuf; ? ?
? ? GZIP ? # ? ? ? ?
? ? update ([BII)V ? ?
0 ? setInput ? ?
^ ?
needsInput ? ?
^ ? deflate (Lio/netty/buffer/ByteBuf;)V ? ?
? offset inAry uncompressed Lio/netty/buffer/ByteBuf; out len allocateBuffer ](Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Z)Lio/netty/buffer/ByteBuf;???t?j java/lang/Math ? ceil (D)D ? ?
? ? 9$SwitchMap$io$netty$handler$codec$compression$ZlibWrapper [I ? ? ? ordinal ? ?
# ? alloc $()Lio/netty/buffer/ByteBufAllocator; ? ? u ? io/netty/buffer/ByteBufAllocator ?
heapBuffer ? ? ? ? msg preferDirect sizeEstimate L(Lio/netty/channel/ChannelHandlerContext;Lio/netty/channel/ChannelPromise;)V (Lio/netty/handler/codec/compression/JdkZlibEncoder;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/TimeUnit SECONDS Ljava/util/concurrent/TimeUnit;
schedule `(Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Lio/netty/util/concurrent/ScheduledFuture; ? f Lio/netty/channel/ChannelFuture; io/netty/channel/ChannelPromise
setSuccess w ()Lio/netty/buffer/ByteBuf; ? ? finish
^ ?
^"
isWritable$ ?
?% write 4(Ljava/lang/Object;)Lio/netty/channel/ChannelFuture;'( u) getValue ()J+,
0-
getTotalIn/ ?
^0 writeByte2 ?
?3 end5
^6
writeAndFlush U(Ljava/lang/Object;Lio/netty/channel/ChannelPromise;)Lio/netty/channel/ChannelFuture;89 u: crcValue uncBytes footer writerIndex? ?
?@
writableBytesB ?
?C ([BIII)I ?E
^F? ?
?H numBytes handlerAdded +(Lio/netty/channel/ChannelHandlerContext;)V V(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;Lio/netty/buffer/ByteBuf;)V ? ?
N V(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;Z)Lio/netty/buffer/ByteBuf; ? ?
Q
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 Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions
SourceFile InnerClasses ! B B [ 5 *? ? \ ! ]
6 7 [ A *? &? )? \ ! * + ]
E F , [ @ *+? )? \ ! ]
O P ' [ G ?*? .*? 0Y? 1? 3*? 5? ? #? 7Y? 9Y? :