com.google.common.io.Files.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jelly Show documentation
Show all versions of jelly Show documentation
Java Functional Metaprogramming API
The newest version!
???? 2< 9:
.;
<=>?@
A
B
CDEF
A
G
HI
J ???KL
;M
N
OP
Q
R
ST
SUV
W
?X
YZ
?[
\]^ %_
Y`
?a
bc
\d
Ye
8fgh
<i
Yj
?k
lm
?n
?o
bp
8q
Yrst
uv
8R
uwx
y
8z
8{|}~
AR
8?
8???
?
HR
8?
8?
8?
8??
8?
??
8??
b??
V;
???
b?
Y?
Y? ?
??
8??
8Q
`R
??
?????
ez
??
??
???
??
e??
o?
{??
??
??
???
v;???????
{f? Y? Y? Y? Y?
??
??
{???
{?
{?? ?
8?
{?
{? ?? ?? ???
?;??
FilePredicate InnerClasses FileByteSink 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; readFile (Ljava/io/InputStream;J)[B in Ljava/io/InputStream; expectedSize J
StackMapTable ?
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; ((Z)[Lcom/google/common/io/FileWriteMode; append Z ? toByteArray (Ljava/io/File;)[B toString <(Ljava/io/File;Ljava/nio/charset/Charset;)Ljava/lang/String; write ([BLjava/io/File;)V from [B to copy '(Ljava/io/File;Ljava/io/OutputStream;)V Ljava/io/OutputStream; (Ljava/io/File;Ljava/io/File;)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 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 len2
createTempDir ()Ljava/io/File; tempDir counter baseDir baseName Ljava/lang/String;s? 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; LocalVariableTypeTable )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 ?? java/lang/OutOfMemoryError java/lang/StringBuilder *file is too large to fit in a byte array: ?? ?? bytes ?? ??? ?? ?? '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???? - ?? ???? java/lang/IllegalStateException 8Failed to create directory within 10000 attempts (tried 0 to ? ? java/io/IOException &Unable to update modification time of ? ? ??0? 'Unable to create parent directories of ? ?
? Unable to delete ?? com/google/common/io/Files$1 ? ? java/util/List ?? ?
? java/io/FileNotFoundException ? java/io/RandomAccessFile r rw ? java/lang/Throwable java/nio/channels/FileChannel? . ! java/util/ArrayList?"#?$?%& java/lang/String ..'()(*?+,-./0 / /../1234 /..5?6738 ? ?9:;: com/google/common/io/Files$2 com/google/common/io/Files (com/google/common/io/Files$FilePredicate %java/nio/channels/FileChannel$MapMode com/google/common/io/Closer java/lang/Iterable java/util/Iterator java/lang/Integer MAX_VALUE $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 -(Ljava/lang/String;)Ljava/lang/StringBuilder; (J)Ljava/lang/StringBuilder; ()Ljava/lang/String; (Ljava/lang/String;)V com/google/common/io/ByteStreams (Ljava/io/InputStream;)[B (Ljava/io/InputStream;I)[B 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; APPEND $Lcom/google/common/io/FileWriteMode; read ()[B com/google/common/io/CharSource ([B)V copyTo (Ljava/io/OutputStream;)J equals (Ljava/lang/Object;)Z
checkArgument )(ZLjava/lang/String;[Ljava/lang/Object;)V "(Lcom/google/common/io/ByteSink;)J com/google/common/io/CharSink (Ljava/lang/CharSequence;)V (Ljava/lang/Appendable;)J length ()J
contentEquals $(Lcom/google/common/io/ByteSource;)Z java/lang/System getProperty currentTimeMillis (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 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 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 ? . ? ? ? ? ? ? ? ? ' ? ? ? / *? ? ? G ? ? ? ? ? ? ^ "*? W+? W? Y? Y? Y*? +? ? ? ? T U
V ? " ? ? " ? ? ? ` ? ? ? ^ "*? W+? W?
Y? Y? Y*?
+? ? ? ? e f
g ? " ? ? " ? ? ? ` ? ? ? 4
? Y*? ? ? q ?
? ? ? ? ? ? < ?? #? Y? Y? ? ? ? ? ? ? ??
*? ? *?? ? ? ? ? ( ? ? <