Package net.mcreator.io
Class FileIO
java.lang.Object
net.mcreator.io.FileIO
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
copyDirectory
(File sourceLocation, File targetLocation) static void
static boolean
static void
emptyDirectory
(File directory, String... excludes) static boolean
isFileOnFileList
(List<File> fileList, File file) static boolean
isFileSomewhereInDirectory
(File file, File directory) static File[]
listFilesRecursively
(File root) static String
static String
readResourceToString
(ClassLoader classLoader, String resource) static String
readResourceToString
(String resource) static String
readResourceToString
(URL resource) static boolean
removeEmptyDirs
(File root) static void
static void
writeBytesToFile
(byte[] c, File f) static void
writeImageToPNGFile
(RenderedImage image, File f) static void
writeStringToFile
(String c, File f)
-
Constructor Details
-
FileIO
public FileIO()
-
-
Method Details
-
readFileToString
-
readResourceToString
-
readResourceToString
-
readResourceToString
-
touchFile
-
writeStringToFile
-
writeBytesToFile
-
writeImageToPNGFile
-
copyFile
-
copyDirectory
-
deleteDir
-
emptyDirectory
-
isFileOnFileList
-
isFileSomewhereInDirectory
-
removeEmptyDirs
-
listFilesRecursively
-