com.groupbyinc.flux.common.http.nio.entity.NStringEntity.class Maven / Gradle / Ivy
???? 2 ? 8com/groupbyinc/flux/common/http/nio/entity/NStringEntity 9com/groupbyinc/flux/common/http/entity/AbstractHttpEntity Ccom/groupbyinc/flux/common/http/nio/entity/HttpAsyncContentProducer ?com/groupbyinc/flux/common/http/nio/entity/ProducingNHttpEntity NStringEntity.java b [B buf Ljava/nio/ByteBuffer; content Ljava/lang/Deprecated; buffer I(Ljava/lang/String;Lcom/groupbyinc/flux/common/http/entity/ContentType;)V ()V
Source string )com/groupbyinc/flux/common/http/util/Args notNull 8(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
2com/groupbyinc/flux/common/http/entity/ContentType
getCharset ()Ljava/nio/charset/Charset; !
" java/lang/String $ java/nio/charset/Charset & -com/groupbyinc/flux/common/http/protocol/HTTP ( DEF_CONTENT_CHARSET Ljava/nio/charset/Charset; * + ) , getBytes (Ljava/nio/charset/Charset;)[B . /
% 0
2 java/nio/ByteBuffer 4 wrap ([B)Ljava/nio/ByteBuffer; 6 7
5 8
: <
> toString ()Ljava/lang/String; @ A
B setContentType (Ljava/lang/String;)V D E
F this :Lcom/groupbyinc/flux/common/http/nio/entity/NStringEntity; s Ljava/lang/String; contentType 4Lcom/groupbyinc/flux/common/http/entity/ContentType; charset '(Ljava/lang/String;Ljava/lang/String;)V $java/io/UnsupportedEncodingException P
TEXT_PLAIN R M S getMimeType U A
V create Z(Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/common/http/entity/ContentType; X Y
Z
\ /(Ljava/lang/String;Ljava/nio/charset/Charset;)V b(Ljava/lang/String;Ljava/nio/charset/Charset;)Lcom/groupbyinc/flux/common/http/entity/ContentType; X _
` DEFAULT_TEXT b M c isRepeatable ()Z getContentLength ()J close rewind ()Ljava/nio/Buffer; j k
5 l finish i
o produceContent f(Lcom/groupbyinc/flux/common/http/nio/ContentEncoder;Lcom/groupbyinc/flux/common/http/nio/IOControl;)V java/io/IOException s 2com/groupbyinc/flux/common/http/nio/ContentEncoder u write (Ljava/nio/ByteBuffer;)I w x v y hasRemaining { f
5 | complete ~ v encoder 4Lcom/groupbyinc/flux/common/http/nio/ContentEncoder; ioctrl /Lcom/groupbyinc/flux/common/http/nio/IOControl; isStreaming
getContent ()Ljava/io/InputStream; java/io/ByteArrayInputStream ? ([B)V ?
? ? writeTo (Ljava/io/OutputStream;)V
Output stream ? java/io/OutputStream ? w ?
? ? flush ?
? ? outstream Ljava/io/OutputStream;
Deprecated RuntimeVisibleAnnotations Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions
SourceFile !
? ?
? ? ? ? Q*? +? W,?
,? #? N-? ? -N*+-? 1? 3**? 3? 9? ;**? 3? =**? ;? ?,? *,? C? G? ? * Q H I Q J K Q L M 9 N + ? 2 P Q R S T V ) W 4 X <