Class FileUtils

    • Method Detail

      • readFile

        public static byte[] readFile​(File file)
                               throws IOException
        Read the contents of the specified file.
        Parameters:
        file - The file to read.
        Returns:
        The file contents.
        Throws:
        IOException - Error readiong file.
      • deleteDir

        public static boolean deleteDir​(File dir)
        Delete directory structure.

        Performs a recursive delete.

        Parameters:
        dir - The directory to be deleted.
        Returns:
        true of the directory is deleted, otherwise false.