![JAR search and dependency download from the Maven repository](/logo.png)
com.google.common.io.Files.class Maven / Gradle / Ivy
???? 4
%
&'()*
+
,
-./0
+
1
23
45
6
~7
89
~:
;<
8=
~>
?@A
;B
~C
DE
8F
sGH
&I
8J
?K L
sM
8N OP
OQ
sR
ST
sUVW
-%X
-Y
-Z
-[
,\
s]
s^
s_
s`a
sb
~c
sde
?fg
>%
?hi
8j
8k ?l
~m????????
~no
&p
qrst
Lu
v
Lwx
Ry
Rz
{|
}
b~
??
??
???
]%????
b?
bG? A? A? A? A?
??
??
b???
b?
b????
s\
s?
b?
b? ~?
?? ?? ???
|%???
FilePredicate InnerClasses FileByteSink FileByteSource FILE_TREE ,Lcom/google/common/graph/SuccessorsFunction; Signature ; ()V Code LineNumberTable LocalVariableTable this Lcom/google/common/io/Files; newReader B(Ljava/io/File;Ljava/nio/charset/Charset;)Ljava/io/BufferedReader; file Ljava/io/File; charset Ljava/nio/charset/Charset;
Exceptions? MethodParameters newWriter B(Ljava/io/File;Ljava/nio/charset/Charset;)Ljava/io/BufferedWriter; asByteSource 1(Ljava/io/File;)Lcom/google/common/io/ByteSource;
asByteSink T(Ljava/io/File;[Lcom/google/common/io/FileWriteMode;)Lcom/google/common/io/ByteSink; modes %[Lcom/google/common/io/FileWriteMode; asCharSource K(Ljava/io/File;Ljava/nio/charset/Charset;)Lcom/google/common/io/CharSource;
asCharSink n(Ljava/io/File;Ljava/nio/charset/Charset;[Lcom/google/common/io/FileWriteMode;)Lcom/google/common/io/CharSink; toByteArray (Ljava/io/File;)[B toString <(Ljava/io/File;Ljava/nio/charset/Charset;)Ljava/lang/String;
Deprecated RuntimeVisibleAnnotations Ljava/lang/Deprecated; RuntimeInvisibleAnnotations ,Lcom/google/errorprone/annotations/InlineMe; replacement (Files.asCharSource(file, charset).read() imports com.google.common.io.Files write ([BLjava/io/File;)V from [B to C(Ljava/lang/CharSequence;Ljava/io/File;Ljava/nio/charset/Charset;)V Ljava/lang/CharSequence; )Files.asCharSink(to, charset).write(from) copy '(Ljava/io/File;Ljava/io/OutputStream;)V Ljava/io/OutputStream; (Ljava/io/File;Ljava/io/File;)V
StackMapTable A(Ljava/io/File;Ljava/nio/charset/Charset;Ljava/lang/Appendable;)V Ljava/lang/Appendable; ,Files.asCharSource(from, charset).copyTo(to) append ?Files.asCharSink(to, charset, FileWriteMode.APPEND).write(from) "com.google.common.io.FileWriteMode equal (Ljava/io/File;Ljava/io/File;)Z file1 file2 len1 J len2
createTempDir ()Ljava/io/File; $Lcom/google/common/annotations/Beta; touch (Ljava/io/File;)V createParentDirs parent move
readFirstLine Ljavax/annotation/CheckForNull; 1Files.asCharSource(file, charset).readFirstLine() readLines :(Ljava/io/File;Ljava/nio/charset/Charset;)Ljava/util/List; N(Ljava/io/File;Ljava/nio/charset/Charset;)Ljava/util/List; `(Ljava/io/File;Ljava/nio/charset/Charset;Lcom/google/common/io/LineProcessor;)Ljava/lang/Object; callback $Lcom/google/common/io/LineProcessor; LocalVariableTypeTable )Lcom/google/common/io/LineProcessor; l(Ljava/io/File;Ljava/nio/charset/Charset;Lcom/google/common/io/LineProcessor;)TT; )Lcom/google/common/io/ParametricNullness; 5Files.asCharSource(file, charset).readLines(callback) 8Lcom/google/errorprone/annotations/CanIgnoreReturnValue; RuntimeVisibleTypeAnnotations 5Lorg/checkerframework/checker/nullness/qual/Nullable; readBytes F(Ljava/io/File;Lcom/google/common/io/ByteProcessor;)Ljava/lang/Object; processor $Lcom/google/common/io/ByteProcessor; )Lcom/google/common/io/ByteProcessor; R(Ljava/io/File;Lcom/google/common/io/ByteProcessor;)TT; (Files.asByteSource(file).read(processor) hash V(Ljava/io/File;Lcom/google/common/hash/HashFunction;)Lcom/google/common/hash/HashCode; hashFunction %Lcom/google/common/hash/HashFunction; +Files.asByteSource(file).hash(hashFunction) map +(Ljava/io/File;)Ljava/nio/MappedByteBuffer;? MapMode R(Ljava/io/File;Ljava/nio/channels/FileChannel$MapMode;)Ljava/nio/MappedByteBuffer; mode 'Ljava/nio/channels/FileChannel$MapMode; S(Ljava/io/File;Ljava/nio/channels/FileChannel$MapMode;J)Ljava/nio/MappedByteBuffer; size mapInternal raf Ljava/io/RandomAccessFile; channel Ljava/nio/channels/FileChannel; e Ljava/lang/Throwable; closer Lcom/google/common/io/Closer;? simplifyPath &(Ljava/lang/String;)Ljava/lang/String; component Ljava/lang/String; pathname
components Ljava/lang/Iterable; path Ljava/util/List; result (Ljava/lang/Iterable; $Ljava/util/List;?? getFileExtension fullName fileName dotIndex I getNameWithoutExtension
fileTraverser %()Lcom/google/common/graph/Traverser; 5()Lcom/google/common/graph/Traverser; isDirectory $()Lcom/google/common/base/Predicate; 4()Lcom/google/common/base/Predicate; isFile
SourceFile
Files.java 6Lcom/google/common/io/ElementTypesAreNonnullByDefault; 0Lcom/google/common/annotations/J2ktIncompatible; /Lcom/google/common/annotations/GwtIncompatible; ? ???? java/io/BufferedReader java/io/InputStreamReader java/io/FileInputStream ? ? ?? ?? java/io/BufferedWriter java/io/OutputStreamWriter java/io/FileOutputStream ?? ?? )com/google/common/io/Files$FileByteSource ?? 'com/google/common/io/Files$FileByteSink ?? ? ?? ?? ? ?? ???? ? ???? "com/google/common/io/FileWriteMode ?? ? ?? ?????? .Source %s and destination %s must be different??????????????? ? ???????? java/io/IOException java/lang/StringBuilder &Unable to update modification time of ?? ?? ?? ??? ?? ???? 'Unable to create parent directories of ?? ? ??? Unable to delete ?? com/google/common/io/Files$1 ?? java/util/List?? ??? ? ? ? ? ? size (%s) may not be negative???? java/io/RandomAccessFile r rw ?????? java/nio/channels/FileChannel ?? ??? ? java/lang/Throwable???? .??????? java/util/ArrayList?????? java/lang/String?? .. ?????? ?? / /../
/.. java/io/File?
? ? com/google/common/io/Files$2 com/google/common/io/Files java/lang/Object (com/google/common/io/Files$FilePredicate java/io/FileNotFoundException %java/nio/channels/FileChannel$MapMode com/google/common/io/Closer java/lang/Iterable java/util/Iterator $com/google/common/base/Preconditions checkNotNull &(Ljava/lang/Object;)Ljava/lang/Object; 2(Ljava/io/InputStream;Ljava/nio/charset/Charset;)V (Ljava/io/Reader;)V 3(Ljava/io/OutputStream;Ljava/nio/charset/Charset;)V (Ljava/io/Writer;)V /(Ljava/io/File;Lcom/google/common/io/Files$1;)V T(Ljava/io/File;[Lcom/google/common/io/FileWriteMode;Lcom/google/common/io/Files$1;)V com/google/common/io/ByteSource =(Ljava/nio/charset/Charset;)Lcom/google/common/io/CharSource; com/google/common/io/ByteSink ;(Ljava/nio/charset/Charset;)Lcom/google/common/io/CharSink; read ()[B com/google/common/io/CharSource ()Ljava/lang/String; ([B)V com/google/common/io/CharSink (Ljava/lang/CharSequence;)V copyTo (Ljava/io/OutputStream;)J equals (Ljava/lang/Object;)Z
checkArgument :(ZLjava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V "(Lcom/google/common/io/ByteSink;)J (Ljava/lang/Appendable;)J APPEND $Lcom/google/common/io/FileWriteMode; length ()J
contentEquals $(Lcom/google/common/io/ByteSource;)Z $com/google/common/io/TempFileCreator INSTANCE &Lcom/google/common/io/TempFileCreator;
createNewFile ()Z java/lang/System currentTimeMillis setLastModified (J)Z -(Ljava/lang/String;)Ljava/lang/StringBuilder; -(Ljava/lang/Object;)Ljava/lang/StringBuilder; (Ljava/lang/String;)V getCanonicalFile
getParentFile mkdirs renameTo (Ljava/io/File;)Z delete 8(Lcom/google/common/io/LineProcessor;)Ljava/lang/Object; 8(Lcom/google/common/io/ByteProcessor;)Ljava/lang/Object; H(Lcom/google/common/hash/HashFunction;)Lcom/google/common/hash/HashCode; READ_ONLY (ZLjava/lang/String;J)V create ()Lcom/google/common/io/Closer; #(Ljava/io/File;Ljava/lang/String;)V register ((Ljava/io/Closeable;)Ljava/io/Closeable;
getChannel !()Ljava/nio/channels/FileChannel; F(Ljava/nio/channels/FileChannel$MapMode;JJ)Ljava/nio/MappedByteBuffer; close rethrow 3(Ljava/lang/Throwable;)Ljava/lang/RuntimeException; ()I com/google/common/base/Splitter on $(C)Lcom/google/common/base/Splitter; omitEmptyStrings #()Lcom/google/common/base/Splitter; split .(Ljava/lang/CharSequence;)Ljava/lang/Iterable; iterator ()Ljava/util/Iterator; hasNext next ()Ljava/lang/Object; hashCode get (I)Ljava/lang/Object; remove add com/google/common/base/Joiner "(C)Lcom/google/common/base/Joiner; join ((Ljava/lang/Iterable;)Ljava/lang/String; charAt (I)C
startsWith (Ljava/lang/String;)Z substring (I)Ljava/lang/String; getName lastIndexOf (I)I (II)Ljava/lang/String; !com/google/common/graph/Traverser forTree Q(Lcom/google/common/graph/SuccessorsFunction;)Lcom/google/common/graph/Traverser; IS_DIRECTORY *Lcom/google/common/io/Files$FilePredicate; IS_FILE 1 ~ ? ? ? ? $ ? ? ? / *? ? ? L ? ? ? ? ? ? ^ "*? W+? W? Y? Y? Y*? +? ? ? ? Z [
\ ? " ? ? " ? ? ? ? ? ? ? ? ? ? ^ "*? W+? W? Y?
Y? Y*? +?
? ? ? l m
n ? " ? ? " ? ? ? ? ? ? ? ? ? ? 4
? Y*? ? ? w ?
? ? ? ? ? ? ? ? ? ? Y*+? ? ? ? ? ? ? ? ? ? ? ? ? ? ? = *? +? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? H
*,? +? ? ? ? ?
? ?
? ?
? ? ?
? ? ? ? ? ? 2 *? ? ? ? ? ? ? ? ? , ? ? ? ? ? = *+? ? ? ? ? ? ? ? ? ? , ? ? ? ? ? ? ? ? ?s ? ?[ s ? ? ? ? E
+? ? *? ? ?
?
? ?
? ? ? , ? ? ? ? ? ? P +,? ? *? ? ?
"
# ? ? ? ? ? ? ? ? , ?
? ? ? ? ? ? ? ? ?s ? ?[ s ? ? ? ? B
*? +? X? ?
0 1 ?
? ?
? ? ? , ? ? ? ? ? ? l %*+? ? ? *+? !*? +? ? ? "X? ? G H $I ? % ? ? % ? ? ? @ ? , ? ? ? ? ? ? M *+? ,? #X? ?
[
\ ? ? ? ? ? ? ? ? , ?
? ? ? ? ? ? ? ? ?s ? ?[ s ? ? ? ? V +,? Y? $S? *? ? ?
o p ? ? ? ? ? ? ? ? , ?
? ? ? ? ? ? ? ? ?s ? ?[ s ?s ? ? ? ? ? F*? W+? W*+? *+? ? ?*? %A+? %7 ?? ?? ?? ?*? +? ? &? ? &