com.groupbyinc.flux.common.http.nio.entity.EntityAsyncContentProducer.class Maven / Gradle / Ivy
???? 2 u Ecom/groupbyinc/flux/common/http/nio/entity/EntityAsyncContentProducer java/lang/Object Ccom/groupbyinc/flux/common/http/nio/entity/HttpAsyncContentProducer EntityAsyncContentProducer.java entity ,Lcom/groupbyinc/flux/common/http/HttpEntity; buffer Ljava/nio/ByteBuffer; channel 'Ljava/nio/channels/ReadableByteChannel; /(Lcom/groupbyinc/flux/common/http/HttpEntity;)V ()V
HTTP entity )com/groupbyinc/flux/common/http/util/Args notNull 8(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
java/nio/ByteBuffer allocate (I)Ljava/nio/ByteBuffer;
!
# this GLcom/groupbyinc/flux/common/http/nio/entity/EntityAsyncContentProducer; produceContent f(Lcom/groupbyinc/flux/common/http/nio/ContentEncoder;Lcom/groupbyinc/flux/common/http/nio/IOControl;)V java/io/IOException )
+ *com/groupbyinc/flux/common/http/HttpEntity -
getContent ()Ljava/io/InputStream; / 0 . 1 java/nio/channels/Channels 3
newChannel >(Ljava/io/InputStream;)Ljava/nio/channels/ReadableByteChannel; 5 6
4 7 %java/nio/channels/ReadableByteChannel 9 read (Ljava/nio/ByteBuffer;)I ; < : = flip ()Ljava/nio/Buffer; ? @
A 2com/groupbyinc/flux/common/http/nio/ContentEncoder C write E < D F hasRemaining ()Z H I
J compact ()Ljava/nio/ByteBuffer; L M
N complete P D Q close S
T encoder 4Lcom/groupbyinc/flux/common/http/nio/ContentEncoder; ioctrl /Lcom/groupbyinc/flux/common/http/nio/IOControl; i I buffering Z isRepeatable ^ I . _ : T isStreaming b I . c java/io/InputStream e
f T instream Ljava/io/InputStream; local toString ()Ljava/lang/String; k l
m Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions
SourceFile !
o _ *? +? W*+? * ? "? $? p % &