mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +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