![JAR search and dependency download from the Maven repository](/logo.png)
com.google.common.io.CharSource.class Maven / Gradle / Ivy
???? 4L
java/lang/Object ()V ,com/google/common/io/CharSource$AsByteSource
>(Lcom/google/common/io/CharSource;Ljava/nio/charset/Charset;)V
com/google/common/io/CharSource
openStream ()Ljava/io/Reader; java/io/BufferedReader
(Ljava/io/Reader;)V
openBufferedStream ()Ljava/io/BufferedReader;
lines ()Ljava/util/stream/Stream; ! " run .(Ljava/io/BufferedReader;)Ljava/lang/Runnable; $ % & ' ( java/util/stream/Stream onClose 3(Ljava/lang/Runnable;)Ljava/util/stream/BaseStream; * + , - java/io/Closeable close / java/io/IOException 1 java/io/UncheckedIOException
0 3 4 (Ljava/io/IOException;)V
6 7 8 9 : com/google/common/base/Optional absent #()Lcom/google/common/base/Optional;
< = :
lengthIfKnown
6 ? @ A isPresent ()Z
6 C D E get ()Ljava/lang/Object; G java/lang/Long
F I J K longValue ()J
M N O P Q com/google/common/io/Closer create ()Lcom/google/common/io/Closer;
M S T U register ((Ljava/io/Closeable;)Ljava/io/Closeable; W java/io/Reader
Y Z [ countBySkipping (Ljava/io/Reader;)J
M + ^ java/lang/Throwable
M ` a b rethrow 3(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;???????
V f g h skip (J)J
j k l m n $com/google/common/base/Preconditions checkNotNull &(Ljava/lang/Object;)Ljava/lang/Object;
p q r s t com/google/common/io/CharStreams copy -(Ljava/lang/Readable;Ljava/lang/Appendable;)J
v w x y com/google/common/io/CharSink ()Ljava/io/Writer; { java/io/Writer
p } ~ toString ((Ljava/lang/Readable;)Ljava/lang/String;
? ? ? readLine ()Ljava/lang/String;
? ? ? ? ? com/google/common/collect/Lists newArrayList ()Ljava/util/ArrayList; ? ? ? ? ? java/util/List add (Ljava/lang/Object;)Z
? ? ? ? ? 'com/google/common/collect/ImmutableList copyOf A(Ljava/util/Collection;)Lcom/google/common/collect/ImmutableList;
p ? ? ? readLines L(Ljava/lang/Readable;Lcom/google/common/io/LineProcessor;)Ljava/lang/Object;
$ ? ? ? forEachOrdered (Ljava/util/function/Consumer;)V $ +
] ? ? ?
addSuppressed (Ljava/lang/Throwable;)V
0 ? ? ? getCause ()Ljava/io/IOException;
V ? ? ? read ()I ? 6com/google/common/io/CharSource$ConcatenatedCharSource
? ? ? (Ljava/lang/Iterable;)V
? ? ? ? ?(Ljava/util/Iterator;)Lcom/google/common/collect/ImmutableList;
? ? ? concat 7(Ljava/lang/Iterable;)Lcom/google/common/io/CharSource;
? ? ? ? >([Ljava/lang/Object;)Lcom/google/common/collect/ImmutableList; ? java/lang/String ? 0com/google/common/io/CharSource$StringCharSource
? ? ? (Ljava/lang/String;)V ? 6com/google/common/io/CharSource$CharSequenceCharSource
? ? ? (Ljava/lang/CharSequence;)V
? ? ? ? ? /com/google/common/io/CharSource$EmptyCharSource
access$000 3()Lcom/google/common/io/CharSource$EmptyCharSource;
? ? ? closeUnchecked (Ljava/io/Closeable;)V Code LineNumberTable LocalVariableTable this !Lcom/google/common/io/CharSource; asByteSource =(Ljava/nio/charset/Charset;)Lcom/google/common/io/ByteSource; charset Ljava/nio/charset/Charset; MethodParameters
Exceptions reader Ljava/io/Reader;
StackMapTable Ljava/io/BufferedReader; Signature /()Ljava/util/stream/Stream; RuntimeInvisibleAnnotations 0Lcom/google/errorprone/annotations/MustBeClosed; e Ljava/io/IOException; closeable Ljava/io/Closeable; +Lcom/google/common/io/IgnoreJRERequirement; 5()Lcom/google/common/base/Optional; length Ljava/lang/Throwable; !Lcom/google/common/base/Optional; closer Lcom/google/common/io/Closer; LocalVariableTypeTable 3Lcom/google/common/base/Optional; count J copyTo (Ljava/lang/Appendable;)J
appendable Ljava/lang/Appendable; ? java/lang/Appendable 8Lcom/google/errorprone/annotations/CanIgnoreReturnValue; "(Lcom/google/common/io/CharSink;)J writer Ljava/io/Writer; sink Lcom/google/common/io/CharSink;
readFirstLine RuntimeVisibleAnnotations Ljavax/annotation/CheckForNull; +()Lcom/google/common/collect/ImmutableList; result Ljava/util/List; line Ljava/lang/String; $Ljava/util/List; ?()Lcom/google/common/collect/ImmutableList; 8(Lcom/google/common/io/LineProcessor;)Ljava/lang/Object; processor $Lcom/google/common/io/LineProcessor; )Lcom/google/common/io/LineProcessor; "com/google/common/io/LineProcessor D(Lcom/google/common/io/LineProcessor;)TT; )Lcom/google/common/io/ParametricNullness; RuntimeVisibleTypeAnnotations 5Lorg/checkerframework/checker/nullness/qual/Nullable; forEachLine Ljava/util/stream/Stream; Ljava/io/UncheckedIOException; action Ljava/util/function/Consumer; -Ljava/util/stream/Stream; 2Ljava/util/function/Consumer<-Ljava/lang/String;>; java/util/function/Consumer 5(Ljava/util/function/Consumer<-Ljava/lang/String;>;)V isEmpty sources Ljava/lang/Iterable; 8Ljava/lang/Iterable<+Lcom/google/common/io/CharSource;>; [(Ljava/lang/Iterable<+Lcom/google/common/io/CharSource;>;)Lcom/google/common/io/CharSource; 7(Ljava/util/Iterator;)Lcom/google/common/io/CharSource; Ljava/util/Iterator; 8Ljava/util/Iterator<+Lcom/google/common/io/CharSource;>; [(Ljava/util/Iterator<+Lcom/google/common/io/CharSource;>;)Lcom/google/common/io/CharSource; E([Lcom/google/common/io/CharSource;)Lcom/google/common/io/CharSource; "[Lcom/google/common/io/CharSource; wrap ;(Ljava/lang/CharSequence;)Lcom/google/common/io/CharSource; charSequence Ljava/lang/CharSequence; empty #()Lcom/google/common/io/CharSource; lambda$lines$0 (Ljava/io/BufferedReader;)V
SourceFile CharSource.java 6Lcom/google/common/io/ElementTypesAreNonnullByDefault; 0Lcom/google/common/annotations/J2ktIncompatible; /Lcom/google/common/annotations/GwtIncompatible; BootstrapMethods 8
9./;
<=>?@ "java/lang/invoke/LambdaMetafactory metafactory ?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite; InnerClasses AsByteSource ConcatenatedCharSource StringCharSource CharSequenceCharSource EmptyCharSourceH %java/lang/invoke/MethodHandles$LookupJ java/lang/invoke/MethodHandles Lookup!
? / *? ? ? [ ? ? ? ? ? ? >
? Y*+? ? ? i ?
? ?
? ? ? ? ? . ? r *? L+? ?
+? ? ? Y+? ? ? ? ? ? ? ? ? ? ? ? ? ? VG ? . ? P *? L+? +? ? # ? $? ?
? ? ? ? ? ? ? ? . ? ? ? ?
? ? ? m *? ) ?
L? 0Y+? 2?? . ? ? ? ?
? ? ?
? ? ? ? ? I . ? ? ? ? = : ? . ? 5? ? ? ? ? ? ? ? ? K ? E*? ;L+? >? +? B? F? H?? LM,*? ? R? VN*-? X7,? \?N,-? _?:,? \? . 5 ] . <