public class FileUtils extends Object
构造器和说明 |
---|
FileUtils() |
限定符和类型 | 方法和说明 |
---|---|
static void |
copy(File origin,
File newfile) |
static void |
deleteDir(File dir) |
static byte[] |
readFile(File file) |
static void |
writeFile(String filename,
byte[] content) |
static void |
writeFileWithParent(File file,
byte[] content) |
static void |
writeFileWithParent(String filename,
byte[] content) |
public static void deleteDir(File dir)
public static void copy(File origin, File newfile) throws FileNotFoundException, IOException
public static void writeFile(String filename, byte[] content) throws FileNotFoundException, IOException
public static void writeFileWithParent(String filename, byte[] content) throws FileNotFoundException, IOException
public static void writeFileWithParent(File file, byte[] content) throws FileNotFoundException, IOException
public static byte[] readFile(File file) throws IOException
IOException
Copyright © 2014. All Rights Reserved.