com.groupbyinc.flux.common.apache.http.nio.entity.NByteArrayEntity.class Maven / Gradle / Ivy
???? 2 ? Bcom/groupbyinc/flux/common/apache/http/nio/entity/NByteArrayEntity @com/groupbyinc/flux/common/apache/http/entity/AbstractHttpEntity Jcom/groupbyinc/flux/common/apache/http/nio/entity/HttpAsyncContentProducer Fcom/groupbyinc/flux/common/apache/http/nio/entity/ProducingNHttpEntity NByteArrayEntity.java b [B off I len buf Ljava/nio/ByteBuffer; content Ljava/lang/Deprecated; buffer @([BLcom/groupbyinc/flux/common/apache/http/entity/ContentType;)V ()V
Source byte array 0com/groupbyinc/flux/common/apache/http/util/Args notNull 8(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
!
#
% java/nio/ByteBuffer ' wrap ([B)Ljava/nio/ByteBuffer; ) *
( + - / 1 9com/groupbyinc/flux/common/apache/http/entity/ContentType 3 toString ()Ljava/lang/String; 5 6
4 7 setContentType (Ljava/lang/String;)V 9 :
; this DLcom/groupbyinc/flux/common/apache/http/nio/entity/NByteArrayEntity; contentType ;Lcom/groupbyinc/flux/common/apache/http/entity/ContentType; B([BIILcom/groupbyinc/flux/common/apache/http/entity/ContentType;)V #java/lang/IndexOutOfBoundsException C java/lang/StringBuilder E
F off: H append -(Ljava/lang/String;)Ljava/lang/StringBuilder; J K
F L (I)Ljava/lang/StringBuilder; J N
F O len: Q b.length: S
F 7 :
D V ([BII)Ljava/nio/ByteBuffer; ) X
( Y ([B)V
\ ([BII)V B
_ close rewind ()Ljava/nio/Buffer; b c
( d finish a
g produceContent t(Lcom/groupbyinc/flux/common/apache/http/nio/ContentEncoder;Lcom/groupbyinc/flux/common/apache/http/nio/IOControl;)V java/io/IOException k 9com/groupbyinc/flux/common/apache/http/nio/ContentEncoder m write (Ljava/nio/ByteBuffer;)I o p n q hasRemaining ()Z s t
( u complete w n x encoder ;Lcom/groupbyinc/flux/common/apache/http/nio/ContentEncoder; ioctrl 6Lcom/groupbyinc/flux/common/apache/http/nio/IOControl; getContentLength ()J isRepeatable isStreaming
getContent ()Ljava/io/InputStream; java/io/ByteArrayInputStream ? ^
? ? writeTo (Ljava/io/OutputStream;)V
Output stream ? java/io/OutputStream ? o ^
? ? flush ?
? ? outstream Ljava/io/OutputStream;
Deprecated RuntimeVisibleAnnotations Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions
SourceFile !
? ? ? ? ? ? =*? +? W*+? "*? $*+?? &*+? ,? .*+? 0**? .? 2,? *,? 8?