
com.groupbyinc.flux.common.http.impl.io.AbstractSessionInputBuffer.class Maven / Gradle / Ivy
???? 2S Bcom/groupbyinc/flux/common/http/impl/io/AbstractSessionInputBuffer java/lang/Object 5com/groupbyinc/flux/common/http/io/SessionInputBuffer -com/groupbyinc/flux/common/http/io/BufferInfo AbstractSessionInputBuffer.java Ljava/lang/Deprecated; instream Ljava/io/InputStream; buffer [B
linebuffer 6Lcom/groupbyinc/flux/common/http/util/ByteArrayBuffer; charset Ljava/nio/charset/Charset; ascii Z
maxLineLen I
minChunkLimit metrics BLcom/groupbyinc/flux/common/http/impl/io/HttpTransportMetricsImpl; onMalformedCharAction $Ljava/nio/charset/CodingErrorAction; onUnmappableCharAction bufferpos bufferlen decoder !Ljava/nio/charset/CharsetDecoder; cbuf Ljava/nio/CharBuffer; ()V # $
% this DLcom/groupbyinc/flux/common/http/impl/io/AbstractSessionInputBuffer; init L(Ljava/io/InputStream;ILcom/groupbyinc/flux/common/http/params/HttpParams;)V Input stream + )com/groupbyinc/flux/common/http/util/Args - notNull 8(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object; / 0
. 1 Buffer size 3 notNegative (ILjava/lang/String;)I 5 6
. 7 HTTP parameters 9 ;
= ? A 4com/groupbyinc/flux/common/http/util/ByteArrayBuffer C (I)V # E
D F H http.protocol.element-charset J 1com/groupbyinc/flux/common/http/params/HttpParams L getParameter &(Ljava/lang/String;)Ljava/lang/Object; N O M P java/lang/String R java/nio/charset/Charset T forName .(Ljava/lang/String;)Ljava/nio/charset/Charset; V W
U X java/io/InputStream Z &com/groupbyinc/flux/common/http/Consts \ ASCII ^ ] _ a equals (Ljava/lang/Object;)Z c d
U e g i http.connection.max-line-length k getIntParameter (Ljava/lang/String;I)I m n M o q http.connection.min-chunk-limit s u createTransportMetrics D()Lcom/groupbyinc/flux/common/http/impl/io/HttpTransportMetricsImpl; w x
y { http.malformed.input.action } "java/nio/charset/CodingErrorAction REPORT ? ? ? ? http.unmappable.input.action ? ?
buffersize params 3Lcom/groupbyinc/flux/common/http/params/HttpParams; Ljava/lang/String; a1 a2 @com/groupbyinc/flux/common/http/impl/io/HttpTransportMetricsImpl ?
? % capacity ()I length available ? ?
? ? ?
?
fillBuffer java/io/IOException ? java/lang/System ? arraycopy *(Ljava/lang/Object;ILjava/lang/Object;II)V ? ?
? ? read ([BII)I ? ?
[ ? incrementBytesTransferred (J)V ? ?
? ? len l off hasBufferedData ()Z ? ?
? ? ?
? noRead java/lang/Math ? min (II)I ? ?
? ? chunk b ([B)I
? locateLF i readLine 9(Lcom/groupbyinc/flux/common/http/util/CharArrayBuffer;)I Char array buffer ? ? ?
? isEmpty ? ?
D ? lineFromReadBuffer :(Lcom/groupbyinc/flux/common/http/util/CharArrayBuffer;I)I ? ?
? append ([BII)V ? ?
D ?
D ? "Maximum line length limit exceeded ? (Ljava/lang/String;)V # ?
? ? lineFromLineBuffer ? ?
?
charbuffer 6Lcom/groupbyinc/flux/common/http/util/CharArrayBuffer; retry byteAt (I)I ? ?
D ? 4com/groupbyinc/flux/common/http/util/CharArrayBuffer ? ;(Lcom/groupbyinc/flux/common/http/util/ByteArrayBuffer;II)V ? ?
? ? ()[B
?
D ? java/nio/ByteBuffer ? wrap ([BII)Ljava/nio/ByteBuffer; ? ?
? ?
appendDecoded N(Lcom/groupbyinc/flux/common/http/util/CharArrayBuffer;Ljava/nio/ByteBuffer;)I ? ?
? clear ? $
D ? bbuf Ljava/nio/ByteBuffer;
? ? position hasRemaining ? ?
? ?
newDecoder #()Ljava/nio/charset/CharsetDecoder; ?
U java/nio/charset/CharsetDecoder onMalformedInput G(Ljava/nio/charset/CodingErrorAction;)Ljava/nio/charset/CharsetDecoder;
onUnmappableCharacter
! " java/nio/CharBuffer allocate (I)Ljava/nio/CharBuffer;
reset
decode K(Ljava/nio/ByteBuffer;Ljava/nio/CharBuffer;Z)Ljava/nio/charset/CoderResult;
handleDecodingResult l(Ljava/nio/charset/CoderResult;Lcom/groupbyinc/flux/common/http/util/CharArrayBuffer;Ljava/nio/ByteBuffer;)I
flush 5(Ljava/nio/CharBuffer;)Ljava/nio/charset/CoderResult;
! ()Ljava/nio/Buffer; ?#
$ result Ljava/nio/charset/CoderResult; java/nio/charset/CoderResult( isError* ?
)+ throwException- $
). flip0#
1 remaining3 ?
4
? get ()C78
9 (C)V ?;
?< compact ()Ljava/nio/CharBuffer;>?
@ ()Ljava/lang/String;
? F ? ?
D toStringFB
?G
getMetrics ;()Lcom/groupbyinc/flux/common/http/io/HttpTransportMetrics; Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions
SourceFile
Deprecated RuntimeVisibleAnnotations!
! " # $ K 3 *? &? L ' ( M
S T ) * K + ?+,? 2W4? 8W-:? 2W*+? <*?? >*? @*? B*? DY? G? I-K? Q ? S:*? ? Y? ? `? b**? b? `? f? h*? j*-l? p ? r*-t ? p ? v**? z? |-~? Q ? ?:*? ? ? ?? ?-?? Q ? ?:*? ? ? ?? ?? L H ? ' ( ? ? ? ? ? ? D ? ? ? 0 ? ? ? M R ^ _ ` a b ! c &