Class FileIO

java.lang.Object
net.mcreator.io.FileIO

public final class FileIO extends Object
  • Constructor Details

    • FileIO

      public FileIO()
  • Method Details

    • readFileToString

      public static String readFileToString(File f)
    • readResourceToString

      public static String readResourceToString(String resource)
    • readResourceToString

      public static String readResourceToString(ClassLoader classLoader, String resource)
    • readResourceToString

      public static String readResourceToString(URL resource)
    • touchFile

      public static void touchFile(File f)
    • writeStringToFile

      public static void writeStringToFile(String c, File f)
    • writeBytesToFile

      public static void writeBytesToFile(byte[] c, File f)
    • writeImageToPNGFile

      public static void writeImageToPNGFile(RenderedImage image, File f)
    • copyFile

      public static void copyFile(File from, File to)
    • copyDirectory

      public static void copyDirectory(File sourceLocation, File targetLocation)
    • deleteDir

      public static boolean deleteDir(File dir)
    • emptyDirectory

      public static void emptyDirectory(File directory, String... excludes)
    • isFileOnFileList

      public static boolean isFileOnFileList(List<File> fileList, File file)
    • isFileSomewhereInDirectory

      public static boolean isFileSomewhereInDirectory(File file, File directory)
    • removeEmptyDirs

      public static boolean removeEmptyDirs(File root)
    • listFilesRecursively

      public static File[] listFilesRecursively(File root)