public class FileUtil extends Object
| 构造器和说明 |
|---|
FileUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
createDirectory(Path path) |
static rx.Observable<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 rx.Observable<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
p1 - p2 - IOExceptionpublic static String md5(Path path) throws IOException
IOExceptionpublic static String digest(Path path, String algorithm) throws NoSuchAlgorithmException, IOException
Copyright © 2017. All rights reserved.