兼容ZipArchiveInputStream多参数情况

This commit is contained in:
Looly 2022-11-16 22:22:04 +08:00
parent e26366019a
commit 98b00bacab
2 changed files with 8 additions and 1 deletions

View File

@ -3,7 +3,7 @@
-------------------------------------------------------------------------------------------------------------
# 5.8.10.M1 (2022-11-12)
# 5.8.10.M1 (2022-11-16)
### 🐣新特性
* 【http 】 HttpResponse增加getFileNameFromDisposition方法pr#2676@Github
@ -13,6 +13,7 @@
* 【core 】 ClassScanner 增加忽略加载错误类的扫描方法pr#855@Gitee
* 【core 】 DateUtil和LocalDateTimeUtil添加区间退化为点点与区间点与点之间关系判断。pr#2725@Github
* 【http 】 UserAgentUtil增加对钉钉PC端的支持issue#I60UOP@Gitee
* 【extra 】 兼容ZipArchiveInputStream多参数情况issue#2736@Github
### 🐞Bug修复
* 【db 】 修复分页时order by截断问题issue#I5X6FM@Gitee

View File

@ -69,6 +69,12 @@ public class StreamExtractor implements Extractor{
* @param in 包流
*/
public StreamExtractor(Charset charset, String archiverName, InputStream in) {
// issue#2736 自定义ArchiveInputStream
if(in instanceof ArchiveInputStream){
this.in = (ArchiveInputStream) in;
return;
}
final ArchiveStreamFactory factory = new ArchiveStreamFactory(charset.name());
try {
in = IoUtil.toBuffered(in);