public class FileUtils extends Object
| 构造器和说明 |
|---|
FileUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
copy(File origin,
File newfile) |
static void |
deleteDir(File dir) |
static byte[] |
read(File file) |
static String |
read(File file,
String charset) |
static byte[] |
read(String fileName) |
static String |
read(String fileName,
String charset) |
static byte[] |
readFile(File file)
已过时。
|
static String |
readFile(File file,
String charset)
已过时。
|
static byte[] |
readFile(String fileName)
已过时。
|
static String |
readFile(String fileName,
String charset)
已过时。
|
static void |
write(File file,
byte[] content) |
static void |
write(File file,
String contentStr,
String charset) |
static void |
write(String fileName,
byte[] content) |
static void |
write(String fileName,
String contentStr,
String charset) |
static void |
writeFile(File file,
byte[] content)
已过时。
|
static void |
writeFile(File file,
String contentStr,
String charset)
已过时。
|
static void |
writeFile(String fileName,
byte[] content)
已过时。
|
static void |
writeFile(String fileName,
String contentStr,
String charset)
已过时。
|
static void |
writeFileWithParent(File file,
byte[] content)
已过时。
|
static void |
writeFileWithParent(File file,
String contentStr,
String charset)
已过时。
|
static void |
writeFileWithParent(String fileName,
byte[] content)
已过时。
|
static void |
writeFileWithParent(String fileName,
String contentStr,
String charset)
已过时。
|
public static void deleteDir(File dir)
public static void copy(File origin, File newfile) throws FileNotFoundException, IOException
public static void write(String fileName, String contentStr, String charset) throws FileNotFoundException, IOException
public static void write(File file, String contentStr, String charset) throws FileNotFoundException, IOException
public static void write(String fileName, byte[] content) throws FileNotFoundException, IOException
public static void write(File file, byte[] content) throws FileNotFoundException, IOException
@Deprecated public static void writeFile(String fileName, String contentStr, String charset) throws FileNotFoundException, IOException
@Deprecated public static void writeFile(File file, String contentStr, String charset) throws FileNotFoundException, IOException
@Deprecated public static void writeFileWithParent(String fileName, String contentStr, String charset) throws FileNotFoundException, IOException
@Deprecated public static void writeFileWithParent(File file, String contentStr, String charset) throws FileNotFoundException, IOException
@Deprecated public static void writeFile(String fileName, byte[] content) throws FileNotFoundException, IOException
@Deprecated public static void writeFile(File file, byte[] content) throws FileNotFoundException, IOException
@Deprecated public static void writeFileWithParent(String fileName, byte[] content) throws FileNotFoundException, IOException
@Deprecated public static void writeFileWithParent(File file, byte[] content) throws FileNotFoundException, IOException
public static byte[] read(File file) throws IOException
IOExceptionpublic static byte[] read(String fileName) throws IOException
IOException@Deprecated public static byte[] readFile(File file) throws IOException
IOException@Deprecated public static byte[] readFile(String fileName) throws IOException
IOException@Deprecated public static String readFile(File file, String charset) throws Exception
ExceptionCopyright © 2017. All Rights Reserved.