package ims.common.util; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.util.ArrayList; import java.util.Iterator; import java.util.List;
import jxl.Sheet; import jxl.Workbook; import jxl.read.biff.BiffException;
import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory;
/** * * @title * @author QQ:407634039 * @date Jun 28, 2011 * @function 文件基本操作 * @version v 1.1 */ public class CopyFilesUtil { private static Log log = LogFactory.getLog(CopyFilesUtil.class); private static List private static List /** * 文件夹或文件复制 * * @param file */ // 初始化files static { if (files.size() > 0) { for (int i = 0; i files.remove(i); } } }
/** * 复制文件夹或文件 * * @param srcFile * 源文件 * @param tarFilepath * 复制路径 */ public void copyFiles(File srcFile, String tarFilepath) { log.debug("复制源文件名字:" + srcFile.getName() + "^^^^^^ |