|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectcom.jdon.util.FileUtil
public class FileUtil
| 构造方法摘要 | |
|---|---|
FileUtil()
|
|
| 方法摘要 | |
|---|---|
static boolean |
copy(String input,
String output)
This class copies an input file to output file |
static void |
CopyDir(String sourcedir,
String destdir)
This class copies an input files of a directory to another directory not include subdir |
static void |
createFile(String output,
String content)
write the content to a file; |
static void |
makehome(String home)
create a directory |
static void |
move(String input,
String output)
This class moves an input file to output file |
static String |
readFile(String input)
read the content from a file; |
static void |
recursiveRemoveDir(File directory)
This class del a directory recursively,that means delete all files and directorys. |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public FileUtil()
| 方法详细信息 |
|---|
public static void createFile(String output,
String content)
throws Exception
output - content -
Exception
public static String readFile(String input)
throws Exception
output - content -
Exception
public static void move(String input,
String output)
throws Exception
String - input file to move fromString - output file
Exception
public static boolean copy(String input,
String output)
throws Exception
String - input file to copy fromString - output file
Exception
public static void makehome(String home)
throws Exception
home -
Exception
public static void CopyDir(String sourcedir,
String destdir)
throws Exception
String - sourcedir the directory to copy from such as:/home/bqlr/imagesString - destdir the target directory
Exception
public static void recursiveRemoveDir(File directory)
throws Exception
File - directory the directory that will be deleted.
Exception
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||