Package org.ujmp.core.util.io
Class FileUtil
java.lang.Object
org.ujmp.core.util.io.FileUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final File
appendExtension
(File file, String newExtension) static void
static int
countFiles
(File path) static boolean
deleteRecursive
(File path) static boolean
equalsContent
(File file1, File file2) findDuplicates
(File path) static byte[]
static FileFormat
guessFormat
(File file) static ListMatrix<File>
listRecursive
(File path) static String
loadToString
(File file) static String
static boolean
-
Constructor Details
-
FileUtil
public FileUtil()
-
-
Method Details
-
guessFormat
-
deleteRecursive
-
getAll
-
equalsContent
- Throws:
IOException
-
move
-
loadToString
-
getBytes
-
copyFile
- Throws:
IOException
-
md5Sum
- Throws:
NoSuchAlgorithmException
IOException
-
findDuplicates
- Throws:
Exception
-
findDuplicates
private static List<List<File>> findDuplicates(File path, Map<String, List<File>> md5Map) throws Exception- Throws:
Exception
-
countFiles
-
listRecursive
-
appendExtension
-