|
|
|
@@ -2,6 +2,8 @@ package com.xueyi.common.core.utils.file; |
|
|
|
|
|
|
|
import com.xueyi.common.core.utils.core.StrUtil; |
|
|
|
import org.apache.commons.lang3.ArrayUtils; |
|
|
|
import org.slf4j.Logger; |
|
|
|
import org.slf4j.LoggerFactory; |
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest; |
|
|
|
import javax.servlet.http.HttpServletResponse; |
|
|
|
@@ -22,6 +24,7 @@ import java.nio.charset.StandardCharsets; |
|
|
|
*/ |
|
|
|
public class FileUtil extends cn.hutool.core.io.FileUtil { |
|
|
|
|
|
|
|
private static Logger logger = LoggerFactory.getLogger(FileUtil.class); |
|
|
|
/** |
|
|
|
* 字符常量:斜杠 {@code '/'} |
|
|
|
*/ |
|
|
|
@@ -235,6 +238,7 @@ public class FileUtil extends cn.hutool.core.io.FileUtil { |
|
|
|
try { |
|
|
|
fos = new FileOutputStream(destFile); |
|
|
|
for (File file : files) { |
|
|
|
logger.info("merge file:{},fileSize:{}", file.getAbsolutePath(),FileUtil.size(file)); |
|
|
|
FileInputStream fis = new FileInputStream(file); |
|
|
|
byte[] bytes = new byte[1024]; |
|
|
|
int len = 0; |
|
|
|
|