Parsing of java folder

WBOY
Release: 2016-07-25 09:10:10
Original
1343 people have browsed it

package ims.common.util;
import java.io.File;

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 files = new ArrayList();

private static List strs = new ArrayList();

/**

* 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() + "^^^^^^



Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!