mirror of
https://gitee.com/dromara/hutool.git
synced 2025-09-18 17:48:17 +08:00
兼容ZipArchiveInputStream多参数情况
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user