com.google.common.io.Files.class Maven / Gradle / Ivy
???? 2j
+W
XYZ[\
]
^
_`ab
]
c
de
fg
h
?i
jk
?l
mn
op
?q
?r
ost u
?v
wx
?y
?z
w{
j|
}~
o
j?
m?
o?
j?
5???
X?
w?
}?
??
??
w?
}?
5?
j???
??
5??
9W
??
9??
9?
9?
9?
5?
5????
9?
C?
5?
5???
9?
J?
5?
5?
5?
5??
5?
??
5??
}??
XW
???
??
w?
??
o?
j? "?
??
5??
5?
d?
??
?????
i?
??
??
???
??
i??
s?
??
??
??
???
zW???????
?? [? [? [? [?
??
??
???
?
?? ?
5?
?
? ?? ?? ???
?W??
FilePredicate InnerClasses FileByteSink? InternalByteArrayOutputStream FileByteSource TEMP_DIR_ATTEMPTS I
ConstantValue ' FILE_TREE_TRAVERSER )Lcom/google/common/collect/TreeTraverser; Signature 9Lcom/google/common/collect/TreeTraverser; ()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 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; newInputStreamSupplier 4(Ljava/io/File;)Lcom/google/common/io/InputSupplier; O(Ljava/io/File;)Lcom/google/common/io/InputSupplier; newOutputStreamSupplier 5(Ljava/io/File;)Lcom/google/common/io/OutputSupplier; Q(Ljava/io/File;)Lcom/google/common/io/OutputSupplier; 6(Ljava/io/File;Z)Lcom/google/common/io/OutputSupplier; append Z R(Ljava/io/File;Z)Lcom/google/common/io/OutputSupplier; ((Z)[Lcom/google/common/io/FileWriteMode;
StackMapTable ? newReaderSupplier N(Ljava/io/File;Ljava/nio/charset/Charset;)Lcom/google/common/io/InputSupplier; k(Ljava/io/File;Ljava/nio/charset/Charset;)Lcom/google/common/io/InputSupplier; newWriterSupplier O(Ljava/io/File;Ljava/nio/charset/Charset;)Lcom/google/common/io/OutputSupplier; m(Ljava/io/File;Ljava/nio/charset/Charset;)Lcom/google/common/io/OutputSupplier; P(Ljava/io/File;Ljava/nio/charset/Charset;Z)Lcom/google/common/io/OutputSupplier; n(Ljava/io/File;Ljava/nio/charset/Charset;Z)Lcom/google/common/io/OutputSupplier; toByteArray (Ljava/io/File;)[B toString <(Ljava/io/File;Ljava/nio/charset/Charset;)Ljava/lang/String; copy 5(Lcom/google/common/io/InputSupplier;Ljava/io/File;)V from $Lcom/google/common/io/InputSupplier; to LocalVariableTypeTable ; M(Lcom/google/common/io/InputSupplier<+Ljava/io/InputStream;>;Ljava/io/File;)V write ([BLjava/io/File;)V [B 6(Ljava/io/File;Lcom/google/common/io/OutputSupplier;)V %Lcom/google/common/io/OutputSupplier; >Lcom/google/common/io/OutputSupplier<+Ljava/io/OutputStream;>; O(Ljava/io/File;Lcom/google/common/io/OutputSupplier<+Ljava/io/OutputStream;>;)V '(Ljava/io/File;Ljava/io/OutputStream;)V Ljava/io/OutputStream; (Ljava/io/File;Ljava/io/File;)V O(Lcom/google/common/io/InputSupplier;Ljava/io/File;Ljava/nio/charset/Charset;)V )Lcom/google/common/io/InputSupplier; ?(Lcom/google/common/io/InputSupplier;Ljava/io/File;Ljava/nio/charset/Charset;)V C(Ljava/lang/CharSequence;Ljava/io/File;Ljava/nio/charset/Charset;)V Ljava/lang/CharSequence; D(Ljava/lang/CharSequence;Ljava/io/File;Ljava/nio/charset/Charset;Z)V P(Ljava/io/File;Ljava/nio/charset/Charset;Lcom/google/common/io/OutputSupplier;)V *Lcom/google/common/io/OutputSupplier; ?(Ljava/io/File;Ljava/nio/charset/Charset;Lcom/google/common/io/OutputSupplier;)V A(Ljava/io/File;Ljava/nio/charset/Charset;Ljava/lang/Appendable;)V Ljava/lang/Appendable; equal (Ljava/io/File;Ljava/io/File;)Z file1 file2 len1 J len2
createTempDir ()Ljava/io/File; tempDir counter baseDir baseName Ljava/lang/String;?? touch (Ljava/io/File;)V createParentDirs parent move
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; )Lcom/google/common/io/LineProcessor; l(Ljava/io/File;Ljava/nio/charset/Charset;Lcom/google/common/io/LineProcessor;)TT; 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; hash V(Ljava/io/File;Lcom/google/common/hash/HashFunction;)Lcom/google/common/hash/HashCode; hashFunction %Lcom/google/common/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; raf Ljava/io/RandomAccessFile; e Ljava/lang/Throwable; size closer Lcom/google/common/io/Closer;??? _(Ljava/io/RandomAccessFile;Ljava/nio/channels/FileChannel$MapMode;J)Ljava/nio/MappedByteBuffer; channel Ljava/nio/channels/FileChannel;? simplifyPath &(Ljava/lang/String;)Ljava/lang/String; component i$ Ljava/util/Iterator; pathname
components Ljava/lang/Iterable; path Ljava/util/List; result (Ljava/lang/Iterable; $Ljava/util/List;??? getFileExtension fullName fileName dotIndex getNameWithoutExtension fileTreeTraverser +()Lcom/google/common/collect/TreeTraverser; ;()Lcom/google/common/collect/TreeTraverser; isDirectory $()Lcom/google/common/base/Predicate; 4()Lcom/google/common/base/Predicate; isFile
SourceFile
Files.java RuntimeInvisibleAnnotations $Lcom/google/common/annotations/Beta; ? ???? 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/lang/Object ? ? ? ? ? !"# java/io/File java.io.tmpdir$%7 ?& java/lang/StringBuilder'! ?( - ?) ? ?* ?+,- java/lang/IllegalStateException 8Failed to create directory within 10000 attempts (tried 0 to ?./-01 java/io/IOException &Unable to update modification time of ?23 4 5-N- 'Unable to create parent directories of 67 ? ?8- Unable to delete
com/google/common/io/Files$1 java/util/List ? ?9 ? ?:;<& $=- java/io/FileNotFoundException '?>? java/io/RandomAccessFile r rw@A 2B ? java/lang/ThrowableCDEF java/nio/channels/FileChannel G H .IJKLMNO java/util/ArrayList?PQ?R-ST java/lang/String ..,HUVWVXYJZ[\]^ / /../_`ab /..cdeaf ? ?ghih com/google/common/io/Files$2 com/google/common/io/Files (com/google/common/io/Files$FilePredicate 8com/google/common/io/Files$InternalByteArrayOutputStream %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; com/google/common/io/ByteStreams asInputSupplier G(Lcom/google/common/io/ByteSource;)Lcom/google/common/io/InputSupplier; asOutputSupplier F(Lcom/google/common/io/ByteSink;)Lcom/google/common/io/OutputSupplier; APPEND $Lcom/google/common/io/FileWriteMode; com/google/common/io/CharStreams G(Lcom/google/common/io/CharSource;)Lcom/google/common/io/InputSupplier; F(Lcom/google/common/io/CharSink;)Lcom/google/common/io/OutputSupplier; read ()[B com/google/common/io/CharSource ()Ljava/lang/String; G(Lcom/google/common/io/InputSupplier;)Lcom/google/common/io/ByteSource; copyTo "(Lcom/google/common/io/ByteSink;)J ([B)V F(Lcom/google/common/io/OutputSupplier;)Lcom/google/common/io/ByteSink; (Ljava/io/OutputStream;)J equals (Ljava/lang/Object;)Z
checkArgument )(ZLjava/lang/String;[Ljava/lang/Object;)V G(Lcom/google/common/io/InputSupplier;)Lcom/google/common/io/CharSource; "(Lcom/google/common/io/CharSink;)J com/google/common/io/CharSink (Ljava/lang/CharSequence;)V F(Lcom/google/common/io/OutputSupplier;)Lcom/google/common/io/CharSink; (Ljava/lang/Appendable;)J length ()J
contentEquals $(Lcom/google/common/io/ByteSource;)Z java/lang/System getProperty (Ljava/lang/String;)V currentTimeMillis (J)Ljava/lang/StringBuilder; -(Ljava/lang/String;)Ljava/lang/StringBuilder; (I)Ljava/lang/StringBuilder; #(Ljava/io/File;Ljava/lang/String;)V mkdir ()Z (C)Ljava/lang/StringBuilder;
createNewFile setLastModified (J)Z -(Ljava/lang/Object;)Ljava/lang/StringBuilder; getCanonicalFile
getParentFile mkdirs renameTo (Ljava/io/File;)Z delete \(Lcom/google/common/io/InputSupplier;Lcom/google/common/io/LineProcessor;)Ljava/lang/Object; \(Lcom/google/common/io/InputSupplier;Lcom/google/common/io/ByteProcessor;)Ljava/lang/Object; H(Lcom/google/common/hash/HashFunction;)Lcom/google/common/hash/HashCode; READ_ONLY exists create ()Lcom/google/common/io/Closer; register ((Ljava/io/Closeable;)Ljava/io/Closeable; close rethrow 3(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
getChannel !()Ljava/nio/channels/FileChannel; F(Ljava/nio/channels/FileChannel$MapMode;JJ)Ljava/nio/MappedByteBuffer; ()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; 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; IS_DIRECTORY *Lcom/google/common/io/Files$FilePredicate; IS_FILE 1 ? + ? ? ? ? ? ? ? ? 0 ? ? ? / *? ? ? H ? ? ? ? ? ? ^ "*? W+? W? Y? Y? Y*? +? ? ? ? U V
W ? " ? ? " ? ? ? d ? ? ? ^ "*? W+? W? Y?
Y? Y*? +?
? ? ? f g
h ? " ? ? " ? ? ? d ? ? ? 4
? Y*? ? ? r ?
? ? ? ? ? ? ? ? Y*+? ? ? ? ? ? ? ? ? ? ? ? = *? +? ? ? ? ? ? ? ? ? ? ? ? H
*,? +? ? ? ?
? ?
? ?
? ? ? ? ? 2 *? ? ? ? ? ? ? ? ? ? ? ? 0 *? ? ? , ? ? ? ? ? ? ? ? @ *? ? ? ? ? : ? ? ? ? ? ? ?
? ? ? M ? ? Y? S? ? ? ? > ? ? ? ? C ? ? ? ? = *+? ? ? ? N ? ? ? ? ? ? ? ? ? ? ; *+? ? ? \ ? ? ? ? ? ? ? ? ? ? K
*+? ? ? !? ? l ?
? ?
? ?
? ? ? ? ? ? ? 2 *? ? "? ? y ? ? ? ? J ? ? ? = *+? ? #? ? ? ? ? ? ? ? ? J ? ? ? [ *? $+? ? ? %X? ?
? ? ? ? ? ? ? ? ? ? ? J ? ? ? ? ? E
+? ? *? &? ?
? ? ?
? ?
? ? ? J ? ? ? W
*? +? '? %X? ?
? ? ?
? ?
? ? ?
? ? ? J ? ? ? ? ? B
*? +? (X? ?
? ? ?
? ?
? ? ? J ? ? ? v /*+? )? ? *? +Y*SY+S? ,*? +? ? ? %X? ? ? ? .? ? / ? ? / ? ? ? @ ? J ? ? ? f *? -+,? ? ? .X? ?
? ? ? ? ? ? ? ? ? ? ? ? ? J ? ? ? ? ? P +,? ? *? /? ?
?
? ? ? ? ? ? ? ? ? J ? ? ? J *+,? 0? ?
? ? ? ? ? ? ? ? ? ? J
? ? ? Z +,? ? *? /? ?
? * ? ? ? ? ? ? ? ? ? J ? ? ? b *+? ,? 1? .X? ?
? ? ? ? ? ? ? ? ? ? ? J ? ? ? ? ? M *+? ,? 2X? ?
'
( ? ? ? ? ? ? ? ? J ? ? ? ? F*? W+? W*+? *+? )? ?*? 3A+? 37 ?? ?? ?? ?*? +? ? 4? ? &