add methods

This commit is contained in:
Looly
2022-06-16 13:36:07 +08:00
parent 8af2bd79f8
commit 7cf1b3758d
12 changed files with 101 additions and 16 deletions

View File

@@ -75,6 +75,8 @@ public class StreamExtractor implements Extractor{
this.in = factory.createArchiveInputStream(archiverName, in);
}
} catch (final ArchiveException e) {
// issue#2384如果报错可能持有文件句柄导致无法删除文件
IoUtil.close(in);
throw new CompressException(e);
}
}