This commit is contained in:
Looly
2023-07-18 00:02:30 +08:00
parent 9fec53f8f2
commit 2495825c74

View File

@@ -98,15 +98,15 @@ public class StreamArchiver implements Archiver {
} catch (final IOException e) { } catch (final IOException e) {
throw new IORuntimeException(e); throw new IORuntimeException(e);
} }
return; } else {
}
final ArchiveStreamFactory factory = new ArchiveStreamFactory(charset.name()); final ArchiveStreamFactory factory = new ArchiveStreamFactory(charset.name());
try { try {
this.out = factory.createArchiveOutputStream(archiverName, targetStream); this.out = factory.createArchiveOutputStream(archiverName, targetStream);
} catch (final ArchiveException e) { } catch (final ArchiveException e) {
throw new CompressException(e); throw new CompressException(e);
} }
}
//特殊设置 //特殊设置
if (this.out instanceof TarArchiveOutputStream) { if (this.out instanceof TarArchiveOutputStream) {