Package | Description |
---|---|
cn.hutool.extra.compress |
基于commons-compress的压缩解压封装
支持包括:gzip, bzip2, xz, lzma, Pack200, DEFLATE, Brotli, DEFLATE64, ZStandard and Z, the archiver formats are 7z, ar, arj, cpio, dump, tar and zip等格式。 |
cn.hutool.extra.compress.extractor |
基于commons-compress的解包(解压缩)封装
见:https://commons.apache.org/proper/commons-compress/
|
Modifier and Type | Method and Description |
---|---|
static Extractor |
CompressUtil.createExtractor(Charset charset,
File file)
创建归档解包器,支持:
ArchiveStreamFactory.AR
ArchiveStreamFactory.CPIO
ArchiveStreamFactory.JAR
ArchiveStreamFactory.TAR
ArchiveStreamFactory.ZIP
ArchiveStreamFactory.SEVEN_Z
|
static Extractor |
CompressUtil.createExtractor(Charset charset,
InputStream in)
创建归档解包器,支持:
ArchiveStreamFactory.AR
ArchiveStreamFactory.CPIO
ArchiveStreamFactory.JAR
ArchiveStreamFactory.TAR
ArchiveStreamFactory.ZIP
ArchiveStreamFactory.SEVEN_Z
|
static Extractor |
CompressUtil.createExtractor(Charset charset,
String archiverName,
File file)
创建归档解包器,支持:
ArchiveStreamFactory.AR
ArchiveStreamFactory.CPIO
ArchiveStreamFactory.JAR
ArchiveStreamFactory.TAR
ArchiveStreamFactory.ZIP
ArchiveStreamFactory.SEVEN_Z
|
static Extractor |
CompressUtil.createExtractor(Charset charset,
String archiverName,
InputStream in)
创建归档解包器,支持:
ArchiveStreamFactory.AR
ArchiveStreamFactory.CPIO
ArchiveStreamFactory.JAR
ArchiveStreamFactory.TAR
ArchiveStreamFactory.ZIP
ArchiveStreamFactory.SEVEN_Z
|
Modifier and Type | Class and Description |
---|---|
class |
SevenZExtractor
7z格式数据解压器,即将归档打包的数据释放
|
class |
StreamExtractor
数据解压器,即将归档打包的数据释放
|
Copyright © 2024. All rights reserved.