public class FileCopy extends Object
| Constructor and Description |
|---|
FileCopy() |
| Modifier and Type | Method and Description |
|---|---|
static void |
copyDirectiory(String sourceDir,
String targetDir)
方法说明:
复制文件夹
CreateTime Apr 17, 2009 11:24:53 PM
|
static void |
copyFile(File sourceFile,
File targetFile)
方法说明:
复制文件
CreateTime Apr 17, 2009 11:23:15 PM
|
static void |
CopyOFFile(String sourceDir,
String targetDir)
方法说明:
复制文件或文件夹
CreateTime Apr 17, 2009 11:22:21 PM
|
public static void CopyOFFile(String sourceDir, String targetDir) throws IOException
sourceDir - 原文件targetDir - 复制到路径IOException - IO异常public static void copyFile(File sourceFile, File targetFile) throws IOException
sourceFile - 源文件targetFile - 新文件IOException - IO异常public static void copyDirectiory(String sourceDir, String targetDir) throws IOException
sourceDir - 源目录targetDir - 复制到的目录IOException - IO异常Copyright © 2017. All rights reserved.