Commit 9a608a91 by fuwenlei

修改

parent 5f36015c
......@@ -32,7 +32,7 @@ public class DecompressionFileZipUtl {
*
* @throws Exception
*/
public static void checkFile(String filePath, String zipName) throws Exception {
public void checkFile(String filePath, String zipName) throws Exception {
File file = new File(filePath);
File[] fileArr = file.listFiles();
// 判断文件夹是否为空
......@@ -64,7 +64,7 @@ public class DecompressionFileZipUtl {
* 查询解压文件下的文件夹
* @throws Exception
* */
public static void nextFile(String filePath,String zipName) throws Exception{
public void nextFile(String filePath,String zipName) throws Exception{
boolean flag = false;
File file = new File(filePath);
File[] fileArr = file.listFiles();
......@@ -149,7 +149,7 @@ public class DecompressionFileZipUtl {
/**
* 解压zip文件
*/
public static void unZip(String path) {
public void unZip(String path) {
int count = -1;
String savepath = "";
......@@ -231,7 +231,7 @@ public class DecompressionFileZipUtl {
/**
* 替换数据文件
*/
public static void copyFile(String oldPath, String newPath) {
public void copyFile(String oldPath, String newPath) {
try {
int bytesum = 0;
int byteread = 0;
......@@ -258,7 +258,7 @@ public class DecompressionFileZipUtl {
/**
* 删除文件夹下所有文件
*/
public static boolean delAllFile(String path) {
public boolean delAllFile(String path) {
boolean flag = false;
File file = new File(path);
if (!file.exists()) {
......@@ -295,7 +295,7 @@ public class DecompressionFileZipUtl {
/**
* 删除空文件夹
*/
public static void delFolder(String folderPath) {
public void delFolder(String folderPath) {
try {
delAllFile(folderPath); // 删除完里面所有内容
String filePath = folderPath;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment