com.huawei.shade.org.apache.http.entity.StringEntity.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of huaweicloud-dws-jdbc Show documentation
Show all versions of huaweicloud-dws-jdbc Show documentation
Data Warehouse Service JDBC driver
???? 2 ? 4com/huawei/shade/org/apache/http/entity/StringEntity :com/huawei/shade/org/apache/http/entity/AbstractHttpEntity java/lang/Cloneable StringEntity.java content [B J(Ljava/lang/String;Lcom/huawei/shade/org/apache/http/entity/ContentType;)V ,java/nio/charset/UnsupportedCharsetException ()V
Source string *com/huawei/shade/org/apache/http/util/Args notNull 8(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
3com/huawei/shade/org/apache/http/entity/ContentType
getCharset ()Ljava/nio/charset/Charset;
java/lang/String java/nio/charset/Charset ! .com/huawei/shade/org/apache/http/protocol/HTTP # DEF_CONTENT_CHARSET Ljava/nio/charset/Charset; % & $ ' getBytes (Ljava/nio/charset/Charset;)[B ) *
+ - toString ()Ljava/lang/String; / 0
1 setContentType (Ljava/lang/String;)V 3 4
5 this 6Lcom/huawei/shade/org/apache/http/entity/StringEntity; string Ljava/lang/String; contentType 5Lcom/huawei/shade/org/apache/http/entity/ContentType; charset 9(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V $java/io/UnsupportedEncodingException ? Ljava/lang/Deprecated;
text/plain B
ISO-8859-1 D (Ljava/lang/String;)[B ) F
G java/lang/StringBuilder I
J append -(Ljava/lang/String;)Ljava/lang/StringBuilder; L M
J N
; charset= P
J 1 mimeType mt cs '(Ljava/lang/String;Ljava/lang/String;)V
TEXT_PLAIN W < X getMimeType Z 0
[ create [(Ljava/lang/String;Ljava/lang/String;)Lcom/huawei/shade/org/apache/http/entity/ContentType; ] ^
_
a /(Ljava/lang/String;Ljava/nio/charset/Charset;)V c(Ljava/lang/String;Ljava/nio/charset/Charset;)Lcom/huawei/shade/org/apache/http/entity/ContentType; ] d
e DEFAULT_TEXT g < h isRepeatable ()Z getContentLength ()J
getContent ()Ljava/io/InputStream; java/io/IOException p java/io/ByteArrayInputStream r ([B)V
t
s u writeTo (Ljava/io/OutputStream;)V
Output stream y java/io/OutputStream { write } t
| ~ flush ?
| ? outStream Ljava/io/OutputStream; isStreaming clone ()Ljava/lang/Object; $java/lang/CloneNotSupportedException ? java/lang/Object ? ? ?
? ? Code
StackMapTable LineNumberTable LocalVariableTable
Exceptions
Deprecated RuntimeVisibleAnnotations
SourceFile !
? ? 6*? +? W,?
,? ? N-? ? (N*+-? ,? .,? *,? 2? 6? ? ? @ "? " ? &