本文整理了Java中de.schlichtherle.truezip.zip.ZipFile.<init>()
方法的一些代码示例,展示了ZipFile.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZipFile.<init>()
方法的具体详情如下:
包路径:de.schlichtherle.truezip.zip.ZipFile
类名称:ZipFile
方法名:<init>
[英]Equivalent to #ZipFile(ReadOnlyFile,Charset,boolean,boolean)
[中]相当于#ZipFile(只读文件、字符集、布尔值、布尔值)
代码示例来源:origin: org.apache.maven.indexer/indexer-core
public TrueZipZipFileHandle( final File targetFile )
throws IOException
{
super( targetFile );
this.zipFile = new ZipFile( targetFile );
}
代码示例来源:origin: org.jboss.windup.org.apache.maven.indexer/indexer-core
public TrueZipZipFileHandle( final File targetFile )
throws IOException
{
super( targetFile );
this.zipFile = new ZipFile( targetFile );
}
代码示例来源:origin: apache/maven-indexer
public TrueZipZipFileHandle( final File targetFile )
throws IOException
{
super( targetFile );
this.zipFile = new ZipFile( targetFile );
}
代码示例来源:origin: de.schlichtherle.truezip/truezip-driver-zip
protected ZipFile newZipFile(
File file, Charset charset)
throws IOException {
return new ZipFile(file, charset);
}
代码示例来源:origin: de.schlichtherle.truezip/truezip-driver-zip
protected ZipFile newZipFile(
String name, Charset charset)
throws IOException {
return new ZipFile(name, charset);
}
代码示例来源:origin: de.schlichtherle.truezip/truezip-driver-zip
protected ZipFile newZipFile(
ReadOnlyFile file, Charset charset)
throws IOException {
return new ZipFile(file, charset);
}
代码示例来源:origin: de.schlichtherle.truezip/truezip-driver-zip
protected ZipFile newZipFile(ReadOnlyFile file)
throws IOException {
return new ZipFile(file);
}
代码示例来源:origin: de.schlichtherle.truezip/truezip-driver-zip
protected ZipFile newZipFile(File file)
throws IOException {
return new ZipFile(file);
}
代码示例来源:origin: de.schlichtherle.truezip/truezip-driver-zip
protected ZipFile newZipFile(String name)
throws IOException {
return new ZipFile(name);
}
代码示例来源:origin: de.schlichtherle.truezip/truezip-driver-zip
@Override
protected ZipFile newZipFile(File file)
throws IOException {
ZipFile res = new ZipFile(file);
res.setCryptoParameters(new WinZipAesCryptoParameters());
return res;
}
代码示例来源:origin: de.schlichtherle.truezip/truezip-driver-zip
@Override
protected ZipFile newZipFile(ReadOnlyFile file)
throws IOException {
ZipFile res = new ZipFile(file);
res.setCryptoParameters(new WinZipAesCryptoParameters());
return res;
}
代码示例来源:origin: de.schlichtherle.truezip/truezip-driver-zip
@Override
protected ZipFile newZipFile(
ReadOnlyFile file, Charset charset)
throws IOException {
ZipFile res = new ZipFile(file, charset);
res.setCryptoParameters(new WinZipAesCryptoParameters());
return res;
}
代码示例来源:origin: de.schlichtherle.truezip/truezip-driver-zip
@Override
protected ZipFile newZipFile(
String name, Charset charset)
throws IOException {
ZipFile res = new ZipFile(name, charset);
res.setCryptoParameters(new WinZipAesCryptoParameters());
return res;
}
代码示例来源:origin: de.schlichtherle.truezip/truezip-driver-zip
@Override
protected ZipFile newZipFile(String name)
throws IOException {
ZipFile res = new ZipFile(name);
res.setCryptoParameters(new WinZipAesCryptoParameters());
return res;
}
代码示例来源:origin: de.schlichtherle.truezip/truezip-driver-zip
@Override
protected ZipFile newZipFile(
File file, Charset charset)
throws IOException {
ZipFile res = new ZipFile(file, charset);
res.setCryptoParameters(new WinZipAesCryptoParameters());
return res;
}
代码示例来源:origin: pl.edu.icm.cocos/cocos-services
private ZipOutputStream getZipFileOutputStream() throws IOException {
String fileName = query.getId().toString();
if (query.getOffset() == null || query.getOffset() == 0l) {
OutputStream stream = fileStorage.createFile(query.getUser(), fileName);
return new ZipOutputStream(stream, Charsets.UTF_8);
}
OutputStream stream = fileStorage.appendFile(query.getUser(), fileName);
// FIXME Is there any other way to append archive file?
ZipFile zipFile = new ZipFile(fileStorage.readFile(query.getUser(), fileName));
return new ZipOutputStream(stream, zipFile);
}
代码示例来源:origin: uk.gov.nationalarchives/droid-core-interfaces
/**
* {@inheritDoc}
*/
@Override
public void handle(IdentificationRequest request) throws IOException {
final ZipFile zipFile = new ZipFile(new ReaderReadOnlyFile(request.getWindowReader()));
try {
Iterable<ZipEntry> iterable = new Iterable<ZipEntry>() {
@Override
public final Iterator<ZipEntry> iterator() {
return new ZipFileIterator(zipFile);
}
};
ZipArchiveWalker walker = new ZipArchiveWalker(request.getIdentifier(), zipFile);
walker.walk(iterable);
} finally {
if (zipFile != null) {
zipFile.close();
}
}
}
代码示例来源:origin: digital-preservation/droid
/**
* {@inheritDoc}
*/
@Override
public void handle(IdentificationRequest request) throws IOException {
final ZipFile zipFile = new ZipFile(new TrueZipReader(request.getWindowReader()));
try {
Iterable<ZipEntry> iterable = new Iterable<ZipEntry>() {
@Override
public final Iterator<ZipEntry> iterator() {
return new ZipFileIterator(zipFile);
}
};
ZipArchiveWalker walker = new ZipArchiveWalker(request.getIdentifier(), zipFile);
walker.walk(iterable);
} finally {
if (zipFile != null) {
zipFile.close();
}
}
}
代码示例来源:origin: digital-preservation/droid
@Override
public void process(IdentificationRequest request, ContainerSignatureMatchCollection matches) throws IOException {
ZipFile zipFile = new ZipFile(new TrueZipReader(request.getWindowReader()), ZipFile.DEFAULT_CHARSET, true, false);
try {
代码示例来源:origin: uk.gov.nationalarchives/droid-container
@Override
public void process(IdentificationRequest request, ContainerSignatureMatchCollection matches) throws IOException {
ZipFile zipFile = new ZipFile(new ReaderReadOnlyFile(request.getWindowReader()), ZipFile.DEFAULT_CHARSET, true, false);
try {
内容来源于网络,如有侵权,请联系作者删除!