public abstract class FileUtils extends Object
Constructor and Description |
---|
FileUtils() |
public static void copyFile(String from, String to) throws IOException
IOException
public static byte[] readFile(File file) throws IOException
file
- The file to read.IOException
- Error readiong file.public static void writeFile(byte[] bytes, File file) throws IOException
IOException
public static boolean deleteDir(File dir)
dir
- The directory to be deleted.Copyright © 2013. All rights reserved.