com.groupbyinc.flux.common.http.entity.BasicHttpEntity.class Maven / Gradle / Ivy
???? 2 _ 6com/groupbyinc/flux/common/http/entity/BasicHttpEntity 9com/groupbyinc/flux/common/http/entity/AbstractHttpEntity BasicHttpEntity.java content Ljava/io/InputStream; length J ()V
???????? this 8Lcom/groupbyinc/flux/common/http/entity/BasicHttpEntity; getContentLength ()J
getContent ()Ljava/io/InputStream; java/lang/IllegalStateException Content has not been provided ,com/groupbyinc/flux/common/http/util/Asserts check (ZLjava/lang/String;)V !
" isRepeatable ()Z setContentLength (J)V len
setContent (Ljava/io/InputStream;)V instream writeTo (Ljava/io/OutputStream;)V java/io/IOException .
Output stream 0 )com/groupbyinc/flux/common/http/util/Args 2 notNull 8(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object; 4 5
3 6
8 java/io/InputStream : [B < read ([B)I > ?
; @ java/io/OutputStream B write ([BII)V D E
C F close H
; I java/lang/Throwable K l I tmp outstream Ljava/io/OutputStream; isStreaming 8com/groupbyinc/flux/common/http/impl/io/EmptyInputStream S INSTANCE :Lcom/groupbyinc/flux/common/http/impl/io/EmptyInputStream; U V T W Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions
SourceFile !
Y > *?
* ? ? Z [ 7 8 9 Y / *? ? Z [ = Y O *? ? ? ? #*? ? Z [
K L \ @ ] $ % Y , ? Z [ V &