![JAR search and dependency download from the Maven repository](/logo.png)
com.google.common.io.ReaderInputStream.class Maven / Gradle / Ivy
???? 4 ?
? ? ?
?
?
9 ?
: ? 9 ?
? ? ? 9 ? ? 9 ? ?
? ?
?
? ? 9 ?
? ?
? ? 9 ?
?
9 ?
? ?
? ? 9 ? 9 ?
9 ? 9 ?
? ? e ?
?
?
e ?
9 ?
e ?
9 ?
e ?
e ?
? ?
? ?
? ?
? ?
? ?
? ?
? ?
? ?
9 ?
? ?
9 ?
?
? ?
? ?
? ?
? ?
? ?
? ? ? ? reader Ljava/io/Reader; encoder !Ljava/nio/charset/CharsetEncoder;
singleByte [B
charBuffer Ljava/nio/CharBuffer;
byteBuffer Ljava/nio/ByteBuffer;
endOfInput Z draining doneFlushing .(Ljava/io/Reader;Ljava/nio/charset/Charset;I)V Code LineNumberTable LocalVariableTable this (Lcom/google/common/io/ReaderInputStream; charset Ljava/nio/charset/Charset;
bufferSize I MethodParameters 5(Ljava/io/Reader;Ljava/nio/charset/CharsetEncoder;I)V
StackMapTable close ()V
Exceptions ? read ()I ([BII)I result Ljava/nio/charset/CoderResult; b off len totalBytesRead doneEncoding ? grow ,(Ljava/nio/CharBuffer;)Ljava/nio/CharBuffer; buf copy [C bigger
readMoreChars limit numChars availableCapacity (Ljava/nio/Buffer;)I buffer Ljava/nio/Buffer;
startDraining (Z)V overflow drain remaining
SourceFile ReaderInputStream.java RuntimeVisibleAnnotations 6Lcom/google/common/io/ElementTypesAreNonnullByDefault; RuntimeInvisibleAnnotations 0Lcom/google/common/annotations/J2ktIncompatible; /Lcom/google/common/annotations/GwtIncompatible; ? ? ? ? ? ? ? ? ? ? I U I X ? @ ? ? ? java/io/Reader ; < java/nio/charset/CharsetEncoder = > bufferSize must be positive: %s ? ? ? ? ? ? ? A B ? ? ? ? ? ? C D W X [ ? ? ? ? ? ? E F G F v ] H F ? ? ? _ ? ? ? ? ? ? s t ? ? l X ? ? ? X ? ? ? \ ? ? ? ? ? ? \ ? ? m \ m ? o p ? ? f g [ ? ? w \ ? ? ? ? ? &com/google/common/io/ReaderInputStream java/io/InputStream java/io/IOException java/nio/charset/CoderResult java/nio/charset/Charset
newEncoder #()Ljava/nio/charset/CharsetEncoder; "java/nio/charset/CodingErrorAction REPLACE $Ljava/nio/charset/CodingErrorAction; onMalformedInput G(Ljava/nio/charset/CodingErrorAction;)Ljava/nio/charset/CharsetEncoder; onUnmappableCharacter $com/google/common/base/Preconditions checkNotNull &(Ljava/lang/Object;)Ljava/lang/Object;
checkArgument (ZLjava/lang/String;I)V reset java/nio/CharBuffer allocate (I)Ljava/nio/CharBuffer; 'com/google/common/io/Java8Compatibility flip (Ljava/nio/Buffer;)V java/nio/ByteBuffer (I)Ljava/nio/ByteBuffer; ([B)I *com/google/common/primitives/UnsignedBytes toInt (B)I checkPositionIndexes (III)V clear UNDERFLOW flush 5(Ljava/nio/ByteBuffer;)Ljava/nio/charset/CoderResult; encode K(Ljava/nio/CharBuffer;Ljava/nio/ByteBuffer;Z)Ljava/nio/charset/CoderResult;
isOverflow ()Z isUnderflow isError throwException array ()[C capacity java/util/Arrays copyOf ([CI)[C wrap ([C)Ljava/nio/CharBuffer; position (Ljava/nio/Buffer;I)V compact ()Ljava/nio/CharBuffer; ([CII)I java/nio/Buffer java/lang/Math min (II)I get ([BII)Ljava/nio/ByteBuffer; 0 9 : ; <