![JAR search and dependency download from the Maven repository](/logo.png)
com.google.common.io.CharStreams.class Maven / Gradle / Ivy
???? 4 ? com/google/common/io/CharStreams
java/nio/CharBuffer allocate (I)Ljava/nio/CharBuffer;
java/lang/Object ()V java/io/Reader java/lang/StringBuilder
copyReaderToBuilder ,(Ljava/io/Reader;Ljava/lang/StringBuilder;)J
asWriter ((Ljava/lang/Appendable;)Ljava/io/Writer;
copyReaderToWriter #(Ljava/io/Reader;Ljava/io/Writer;)J
! " # $ $com/google/common/base/Preconditions checkNotNull &(Ljava/lang/Object;)Ljava/lang/Object;
& ' ( createBuffer ()Ljava/nio/CharBuffer; * + , - . java/lang/Readable read (Ljava/nio/CharBuffer;)I
0 1 2 3 4 'com/google/common/io/Java8Compatibility flip (Ljava/nio/Buffer;)V 6 7 8 9 : java/lang/Appendable append 0(Ljava/lang/CharSequence;)Ljava/lang/Appendable;
< = > remaining ()I
0 @ A 4 clear
C - D ([C)I
F 9 G ([CII)Ljava/lang/StringBuilder;
I J K L M java/io/Writer write ([CII)V
O P Q toStringBuilder /(Ljava/lang/Readable;)Ljava/lang/StringBuilder;
S T U toString ()Ljava/lang/String;
X Y Z copy -(Ljava/lang/Readable;Ljava/lang/Appendable;)J \ java/util/ArrayList
[ _ com/google/common/io/LineReader
^ a
b (Ljava/lang/Readable;)V
^ d e U readLine g h i j k java/util/List add (Ljava/lang/Object;)Z m n o p q "com/google/common/io/LineProcessor processLine (Ljava/lang/String;)Z m s t u getResult ()Ljava/lang/Object;????????
y z { skip (J)J } java/io/EOFException
|
? ? ? ? ? +com/google/common/io/CharStreams$NullWriter
access$000 /()Lcom/google/common/io/CharStreams$NullWriter; ? %com/google/common/io/AppendableWriter
? ?
? (Ljava/lang/Appendable;)V DEFAULT_BUF_SIZE I
ConstantValue Code LineNumberTable LocalVariableTable this "Lcom/google/common/io/CharStreams; from Ljava/lang/Readable; to Ljava/lang/Appendable; total J buf Ljava/nio/CharBuffer;
StackMapTable
Exceptions ? java/io/IOException MethodParameters RuntimeInvisibleAnnotations 8Lcom/google/errorprone/annotations/CanIgnoreReturnValue; Ljava/io/Reader; Ljava/lang/StringBuilder; [C nRead ? Ljava/io/Writer; ((Ljava/lang/Readable;)Ljava/lang/String; r sb readLines &(Ljava/lang/Readable;)Ljava/util/List; result Ljava/util/List;
lineReader !Lcom/google/common/io/LineReader; line Ljava/lang/String; LocalVariableTypeTable $Ljava/util/List; ? java/lang/String Signature :(Ljava/lang/Readable;)Ljava/util/List; L(Ljava/lang/Readable;Lcom/google/common/io/LineProcessor;)Ljava/lang/Object; readable processor $Lcom/google/common/io/LineProcessor; )Lcom/google/common/io/LineProcessor; X(Ljava/lang/Readable;Lcom/google/common/io/LineProcessor;)TT; RuntimeVisibleAnnotations )Lcom/google/common/io/ParametricNullness; RuntimeVisibleTypeAnnotations 5Lorg/checkerframework/checker/nullness/qual/Nullable; exhaust (Ljava/lang/Readable;)J skipFully (Ljava/io/Reader;J)V amt reader n
nullWriter ()Ljava/io/Writer; target
SourceFile CharStreams.java 6Lcom/google/common/io/ElementTypesAreNonnullByDefault; 0Lcom/google/common/annotations/J2ktIncompatible; /Lcom/google/common/annotations/GwtIncompatible; InnerClasses
NullWriter 1
? ? ? ?
' ( ? ? ? ? 8
? / *? ? ? ; ? ? ? Y Z ? ? d*? ? "+? ? *? +? ? ?*? +? ? ?*? W+? W A? %:*? ) ? "? /+? 5 W ? ;?aA? ???? ? ? : J L M O &