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 basic file operations * @version v 1.1 */ public class CopyFilesUtil { private static Log log = LogFactory.getLog(CopyFilesUtil.class); private static List private static List /** * Folder or file copy * * @param file */ // 初始化files static { if (files.size() > 0) { for (int i = 0; i files.remove(i); } } }
/** * Copy folder or file * * @param srcFile * Source file * @param tarFilepath * Copy path */ public void copyFiles(File srcFile, String tarFilepath) { log.debug("复制源文件名字:" + srcFile.getName() + "^^^^^^ |