public class SenvenZExtractor extends Object implements Extractor
Constructor and Description |
---|
SenvenZExtractor(File file)
构造
|
SenvenZExtractor(File file,
char[] password)
构造
|
SenvenZExtractor(InputStream in)
构造
|
SenvenZExtractor(InputStream in,
char[] password)
构造
|
SenvenZExtractor(SeekableByteChannel channel)
构造
|
SenvenZExtractor(SeekableByteChannel channel,
char[] password)
构造
|
Modifier and Type | Method and Description |
---|---|
void |
close()
无异常关闭
|
void |
extract(File targetDir,
Filter<org.apache.commons.compress.archivers.ArchiveEntry> filter)
释放(解压)到指定目录,结束后自动关闭流,此方法只能调用一次
|
public SenvenZExtractor(File file)
file
- 包文件public SenvenZExtractor(File file, char[] password)
file
- 包文件password
- 密码,null表示无密码public SenvenZExtractor(InputStream in)
in
- 包流public SenvenZExtractor(InputStream in, char[] password)
in
- 包流password
- 密码,null表示无密码public SenvenZExtractor(SeekableByteChannel channel)
channel
- SeekableByteChannel
public SenvenZExtractor(SeekableByteChannel channel, char[] password)
channel
- SeekableByteChannel
password
- 密码,null表示无密码public void extract(File targetDir, Filter<org.apache.commons.compress.archivers.ArchiveEntry> filter)
extract
in interface Extractor
targetDir
- 目标目录filter
- 解压文件过滤器,用于指定需要释放的文件,null表示不过滤。当Filter.accept(Object)
为true时释放。Copyright © 2021. All rights reserved.