
com.huawei.shade.org.apache.http.util.EntityUtils.class Maven / Gradle / Ivy
???? 1 ? 1com/huawei/shade/org/apache/http/util/EntityUtils java/lang/Object EntityUtils.java ()V
this 3Lcom/huawei/shade/org/apache/http/util/EntityUtils; consumeQuietly 0(Lcom/huawei/shade/org/apache/http/HttpEntity;)V java/io/IOException consume
ignore Ljava/io/IOException; entity -Lcom/huawei/shade/org/apache/http/HttpEntity; +com/huawei/shade/org/apache/http/HttpEntity isStreaming ()Z
getContent ()Ljava/io/InputStream; java/io/InputStream ! close #
" $ instream Ljava/io/InputStream; updateEntity _(Lcom/huawei/shade/org/apache/http/HttpResponse;Lcom/huawei/shade/org/apache/http/HttpEntity;)V Response * *com/huawei/shade/org/apache/http/util/Args , notNull 8(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object; . /
- 0 -com/huawei/shade/org/apache/http/HttpResponse 2 getEntity /()Lcom/huawei/shade/org/apache/http/HttpEntity; 4 5 3 6 setEntity 8
3 9 response /Lcom/huawei/shade/org/apache/http/HttpResponse; toByteArray 1(Lcom/huawei/shade/org/apache/http/HttpEntity;)[B Entity ? getContentLength ()J A B C ??? .HTTP entity too large to be buffered in memory G check (ZLjava/lang/String;)V I J
- K 5com/huawei/shade/org/apache/http/util/ByteArrayBuffer M (I)V O
N P read ([B)I R S
" T append ([BII)V V W
N X ()[B = Z
N [ i I buffer 7Lcom/huawei/shade/org/apache/http/util/ByteArrayBuffer; tmp [B l getContentCharSet A(Lcom/huawei/shade/org/apache/http/HttpEntity;)Ljava/lang/String; /com/huawei/shade/org/apache/http/ParseException f Ljava/lang/Deprecated; getContentType +()Lcom/huawei/shade/org/apache/http/Header; i j k 'com/huawei/shade/org/apache/http/Header m getElements 3()[Lcom/huawei/shade/org/apache/http/HeaderElement; o p n q charset s .com/huawei/shade/org/apache/http/HeaderElement u getParameterByName D(Ljava/lang/String;)Lcom/huawei/shade/org/apache/http/NameValuePair; w x v y .com/huawei/shade/org/apache/http/NameValuePair { getValue ()Ljava/lang/String; } ~ | param 0Lcom/huawei/shade/org/apache/http/NameValuePair; values 1[Lcom/huawei/shade/org/apache/http/HeaderElement; Ljava/lang/String; getContentMimeType getName ? ~ v ? mimeType toString [(Lcom/huawei/shade/org/apache/http/HttpEntity;Ljava/nio/charset/Charset;)Ljava/lang/String; ,java/nio/charset/UnsupportedCharsetException ? 3com/huawei/shade/org/apache/http/entity/ContentType ? get d(Lcom/huawei/shade/org/apache/http/HttpEntity;)Lcom/huawei/shade/org/apache/http/entity/ContentType; ? ?
? ?
getCharset ()Ljava/nio/charset/Charset; ? ?
? ? $java/io/UnsupportedEncodingException ?
getMessage ? ~
? ? (Ljava/lang/String;)V ?
? ? .com/huawei/shade/org/apache/http/protocol/HTTP ? DEF_CONTENT_CHARSET Ljava/nio/charset/Charset; ? ? ? ? java/io/InputStreamReader ? 2(Ljava/io/InputStream;Ljava/nio/charset/Charset;)V ?
? ? 5com/huawei/shade/org/apache/http/util/CharArrayBuffer ?
? P java/io/Reader ? ([C)I R ?
? ? ([CII)V V ?
? ? ? ~
? ? contentType 5Lcom/huawei/shade/org/apache/http/entity/ContentType; ex .Ljava/nio/charset/UnsupportedCharsetException; reader Ljava/io/Reader; 7Lcom/huawei/shade/org/apache/http/util/CharArrayBuffer; [C defaultCharset S(Lcom/huawei/shade/org/apache/http/HttpEntity;Ljava/lang/String;)Ljava/lang/String; java/nio/charset/Charset ? forName .(Ljava/lang/String;)Ljava/nio/charset/Charset; ? ?
? ? ? ?
? Code LocalVariableTable LineNumberTable
Exceptions
Deprecated RuntimeVisibleAnnotations
SourceFile 1
? 3 *? ? ?
?
5 6
? Q *? ? L? ? ? C E D F
? j *? ?*? ? *? L+? +? %? ? &