mirror of
https://gitee.com/dromara/hutool.git
synced 2025-04-05 17:37:59 +08:00
修复CompressUtil.createArchiver 将文件压缩为tgz时文件名规则无效问题
This commit is contained in:
parent
25b831c214
commit
db9d812cd4
@ -2,7 +2,7 @@
|
|||||||
# 🚀Changelog
|
# 🚀Changelog
|
||||||
|
|
||||||
-------------------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------------------
|
||||||
# 5.8.21(2023-07-08)
|
# 5.8.21(2023-07-18)
|
||||||
|
|
||||||
### 🐣新特性
|
### 🐣新特性
|
||||||
* 【core 】 list 为空时,CollUtil.max等返回null而非异常(pr#1027@Gitee)
|
* 【core 】 list 为空时,CollUtil.max等返回null而非异常(pr#1027@Gitee)
|
||||||
@ -22,6 +22,7 @@
|
|||||||
* 【core 】 修复Pair序列化转换无效问题(issue#I7GPGX@Github)
|
* 【core 】 修复Pair序列化转换无效问题(issue#I7GPGX@Github)
|
||||||
* 【core 】 修复TypeUtil.getTypeArgument对实现接口获取不全面问题(issue#I7CRIW@Gitee)
|
* 【core 】 修复TypeUtil.getTypeArgument对实现接口获取不全面问题(issue#I7CRIW@Gitee)
|
||||||
* 【core 】 修复BeanUtil.isCommonFieldsEqual判空导致的问题
|
* 【core 】 修复BeanUtil.isCommonFieldsEqual判空导致的问题
|
||||||
|
* 【extra 】 修复CompressUtil.createArchiver 将文件压缩为tgz时文件名规则无效问题(issue#I7LLL7@Gitee)
|
||||||
|
|
||||||
-------------------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------------------
|
||||||
# 5.8.20(2023-06-16)
|
# 5.8.20(2023-06-16)
|
||||||
|
@ -86,14 +86,13 @@ public class StreamArchiver implements Archiver {
|
|||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw new IORuntimeException(e);
|
throw new IORuntimeException(e);
|
||||||
}
|
}
|
||||||
return;
|
} else {
|
||||||
}
|
final ArchiveStreamFactory factory = new ArchiveStreamFactory(charset.name());
|
||||||
|
try {
|
||||||
final ArchiveStreamFactory factory = new ArchiveStreamFactory(charset.name());
|
this.out = factory.createArchiveOutputStream(archiverName, targetStream);
|
||||||
try {
|
} catch (ArchiveException e) {
|
||||||
this.out = factory.createArchiveOutputStream(archiverName, targetStream);
|
throw new CompressException(e);
|
||||||
} catch (ArchiveException e) {
|
}
|
||||||
throw new CompressException(e);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//特殊设置
|
//特殊设置
|
||||||
|
Loading…
Reference in New Issue
Block a user