public class SenvenZExtractor extends Object implements Extractor
| 构造器和说明 |
|---|
SenvenZExtractor(File file)
构造
|
SenvenZExtractor(File file,
char[] password)
构造
|
SenvenZExtractor(InputStream in)
构造
|
SenvenZExtractor(InputStream in,
char[] password)
构造
|
SenvenZExtractor(SeekableByteChannel channel)
构造
|
SenvenZExtractor(SeekableByteChannel channel,
char[] password)
构造
|
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 - SeekableByteChannelpublic SenvenZExtractor(SeekableByteChannel channel, char[] password)
channel - SeekableByteChannelpassword - 密码,null表示无密码public void extract(File targetDir, Filter<org.apache.commons.compress.archivers.ArchiveEntry> filter)
extract 在接口中 ExtractortargetDir - 目标目录filter - 解压文件过滤器,用于指定需要释放的文件,null表示不过滤。当Filter.accept(Object)为true时释放。Copyright © 2021. All rights reserved.