io.netty.handler.codec.spdy.SpdyHeaderBlockZlibEncoder.class Maven / Gradle / Ivy
???? 2 ? 6io/netty/handler/codec/spdy/SpdyHeaderBlockZlibEncoder 5io/netty/handler/codec/spdy/SpdyHeaderBlockRawEncoder SpdyHeaderBlockZlibEncoder.java
compressor Ljava/util/zip/Deflater; finished Z -(Lio/netty/handler/codec/spdy/SpdyVersion;I)V ,(Lio/netty/handler/codec/spdy/SpdyVersion;)V
'io/netty/handler/codec/spdy/SpdyVersion "java/lang/IllegalArgumentException java/lang/StringBuilder ()V
compressionLevel: append -(Ljava/lang/String;)Ljava/lang/StringBuilder;
(I)Ljava/lang/StringBuilder;
(expected: 0-9) ! toString ()Ljava/lang/String; # $
% (Ljava/lang/String;)V
'
( java/util/zip/Deflater * (I)V
,
+ - / )io/netty/handler/codec/spdy/SpdyCodecUtil 1 SPDY_DICT [B 3 4 2 5
setDictionary ([B)V 7 8
+ 9 this 8Lio/netty/handler/codec/spdy/SpdyHeaderBlockZlibEncoder; spdyVersion )Lio/netty/handler/codec/spdy/SpdyVersion; compressionLevel I setInput (Lio/netty/buffer/ByteBuf;)I io/netty/buffer/ByteBuf C
readableBytes ()I E F
D G hasArray ()Z I J
D K array ()[B M N
D O arrayOffset Q F
D R readerIndex T F
D U ([BII)V A W
+ X getBytes (I[B)Lio/netty/buffer/ByteBuf; Z [
D \ in decompressed Lio/netty/buffer/ByteBuf; len encode >(Lio/netty/buffer/ByteBufAllocator;I)Lio/netty/buffer/ByteBuf; io/netty/buffer/ByteBufAllocator d
heapBuffer (I)Lio/netty/buffer/ByteBuf; f g e h compressInto (Lio/netty/buffer/ByteBuf;)Z j k
l capacity n F
D o ensureWritable q g
D r release t J
D u java/lang/Throwable w alloc "Lio/netty/buffer/ByteBufAllocator;
compressed writerIndex | F
D }
writableBytes F
D ? deflate ([BIII)I ? ?
+ ? | g
D ? 4 out off toWrite numBytes k(Lio/netty/buffer/ByteBufAllocator;Lio/netty/handler/codec/spdy/SpdyHeadersFrame;)Lio/netty/buffer/ByteBuf; java/lang/Exception ? frame ? ? io/netty/buffer/Unpooled ? EMPTY_BUFFER ? ` ? ? b ?
?
isReadable ? J
D ? A B
? b c
? .Lio/netty/handler/codec/spdy/SpdyHeadersFrame; end ?
+ ?
? Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions
SourceFile
? ? F*+? ? ? #? Y? Y? ? ? "? ? &? )?*? +Y? .? 0*? 0? 6? :? ? F ; <