com.groupbyinc.flux.common.http.util.EntityUtils.class Maven / Gradle / Ivy
???? 2 ? 0com/groupbyinc/flux/common/http/util/EntityUtils java/lang/Object EntityUtils.java ()V
this 2Lcom/groupbyinc/flux/common/http/util/EntityUtils; consumeQuietly /(Lcom/groupbyinc/flux/common/http/HttpEntity;)V java/io/IOException consume
ignore Ljava/io/IOException; entity ,Lcom/groupbyinc/flux/common/http/HttpEntity; *com/groupbyinc/flux/common/http/HttpEntity isStreaming ()Z
getContent ()Ljava/io/InputStream; java/io/InputStream ! close #
" $ instream Ljava/io/InputStream; updateEntity ](Lcom/groupbyinc/flux/common/http/HttpResponse;Lcom/groupbyinc/flux/common/http/HttpEntity;)V Response * )com/groupbyinc/flux/common/http/util/Args , notNull 8(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object; . /
- 0 ,com/groupbyinc/flux/common/http/HttpResponse 2 getEntity .()Lcom/groupbyinc/flux/common/http/HttpEntity; 4 5 3 6 setEntity 8
3 9 response .Lcom/groupbyinc/flux/common/http/HttpResponse; toByteArray 0(Lcom/groupbyinc/flux/common/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 4com/groupbyinc/flux/common/http/util/ByteArrayBuffer M (I)V O
N P [B R read ([B)I T U
" V append ([BII)V X Y
N Z ()[B = \
N ] java/lang/Throwable _ i I buffer 6Lcom/groupbyinc/flux/common/http/util/ByteArrayBuffer; tmp l getContentCharSet @(Lcom/groupbyinc/flux/common/http/HttpEntity;)Ljava/lang/String; .com/groupbyinc/flux/common/http/ParseException i Ljava/lang/Deprecated; getContentType *()Lcom/groupbyinc/flux/common/http/Header; l m n &com/groupbyinc/flux/common/http/Header p getElements 2()[Lcom/groupbyinc/flux/common/http/HeaderElement; r s q t charset v -com/groupbyinc/flux/common/http/HeaderElement x getParameterByName C(Ljava/lang/String;)Lcom/groupbyinc/flux/common/http/NameValuePair; z { y | -com/groupbyinc/flux/common/http/NameValuePair ~ getValue ()Ljava/lang/String; ? ? ? java/lang/String ? param /Lcom/groupbyinc/flux/common/http/NameValuePair; values 0[Lcom/groupbyinc/flux/common/http/HeaderElement; Ljava/lang/String; getContentMimeType getName ? ? y ? mimeType toString Z(Lcom/groupbyinc/flux/common/http/HttpEntity;Ljava/nio/charset/Charset;)Ljava/lang/String; ,java/nio/charset/UnsupportedCharsetException ? 2com/groupbyinc/flux/common/http/entity/ContentType ? get b(Lcom/groupbyinc/flux/common/http/HttpEntity;)Lcom/groupbyinc/flux/common/http/entity/ContentType; ? ?
? ?
getCharset ()Ljava/nio/charset/Charset; ? ?
? ? java/nio/charset/Charset ? $java/io/UnsupportedEncodingException ?
getMessage ? ?
? ? (Ljava/lang/String;)V ?
? ? -com/groupbyinc/flux/common/http/protocol/HTTP ? DEF_CONTENT_CHARSET Ljava/nio/charset/Charset; ? ? ? ? java/io/InputStreamReader ? 2(Ljava/io/InputStream;Ljava/nio/charset/Charset;)V ?
? ? 4com/groupbyinc/flux/common/http/util/CharArrayBuffer ?
? P java/io/Reader ? [C ? ([C)I T ?
? ? ([CII)V X ?
? ? ? ?
? ? contentType 4Lcom/groupbyinc/flux/common/http/entity/ContentType; ex .Ljava/nio/charset/UnsupportedCharsetException; reader Ljava/io/Reader; 6Lcom/groupbyinc/flux/common/http/util/CharArrayBuffer; defaultCharset R(Lcom/groupbyinc/flux/common/http/HttpEntity;Ljava/lang/String;)Ljava/lang/String; forName .(Ljava/lang/String;)Ljava/nio/charset/Charset; ? ?
? ? ? ?
? Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions
Deprecated RuntimeVisibleAnnotations
SourceFile 1
? 3 *? ? ?
?
5 6
? ^ *? ? L? ? ? C E D F ? G
? t *? ?*? ? *? L+? +? %? ? &