mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix code
This commit is contained in:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user