public class FileUtil extends Object
| 构造器和说明 |
|---|
FileUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
createDirectory(Path path) |
static io.reactivex.Flowable<Path> |
deepTraversal(Path path) |
static String |
digest(Path path,
String algorithm) |
static boolean |
equals(Path p1,
Path p2)
Test if the both paths are same file
|
static String |
getNameWithoutSuffix(Path path) |
static String |
md5(Path path) |
static Path |
rename(Path path,
String name) |
static Path |
rename(Path path,
java.util.function.UnaryOperator<String> nameConverter) |
static io.reactivex.Flowable<Path> |
wideTraversal(Path path) |
public static void createDirectory(Path path) throws IOException
IOExceptionpublic static Path rename(Path path, String name) throws IOException
IOExceptionpublic static Path rename(Path path, java.util.function.UnaryOperator<String> nameConverter) throws IOException
IOExceptionpublic static boolean equals(Path p1, Path p2) throws IOException
IOExceptionpublic static String md5(Path path) throws IOException
IOExceptionpublic static String digest(Path path, String algorithm) throws NoSuchAlgorithmException, IOException
Copyright © 2018. All rights reserved.