本文整理了Java中org.apache.commons.compress.archivers.zip.ZipFile.canReadEntryData()
方法的一些代码示例,展示了ZipFile.canReadEntryData()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZipFile.canReadEntryData()
方法的具体详情如下:
包路径:org.apache.commons.compress.archivers.zip.ZipFile
类名称:ZipFile
方法名:canReadEntryData
[英]Whether this class is able to read the given entry.
May return false if it is set up to use encryption or a compression method that hasn't been implemented yet.
[中]该类是否能够读取给定的条目。
如果设置为使用尚未实现的加密或压缩方法,则可能返回false。
代码示例来源:origin: org.apache.commons/commons-compress
@Override
public ArchiveEntry getNextReadableEntry() throws IOException {
ZipArchiveEntry next = entries.hasMoreElements() ? entries.nextElement() : null;
while (next != null && !archive.canReadEntryData(next)) {
next = entries.hasMoreElements() ? entries.nextElement() : null;
}
return next;
}
}, new EntryWriter() {
代码示例来源:origin: flapdoodle-oss/de.flapdoodle.embed.process
@Override
public boolean canReadEntryData(ArchiveEntry entry) {
return zFile.canReadEntryData(zFile.getEntry(entry.getName()));
}
代码示例来源:origin: de.flapdoodle.embed/de.flapdoodle.embed.process
@Override
public boolean canReadEntryData(ArchiveEntry entry) {
return zFile.canReadEntryData(zFile.getEntry(entry.getName()));
}
代码示例来源:origin: org.apache.ant/ant-compress
empty = false;
ZipArchiveEntry ze = (ZipArchiveEntry) e.nextElement();
if (getSkipUnreadableEntries() && !zf.canReadEntryData(ze)) {
log(Messages.skippedIsUnreadable(ze));
continue;
代码示例来源:origin: org.apache.ant/ant-compress
while (e.hasMoreElements()) {
entry = (ZipArchiveEntry) e.nextElement();
if (getSkipUnreadableEntries() && !zf.canReadEntryData(entry)) {
log(Messages.skippedIsUnreadable(entry));
continue;
内容来源于网络,如有侵权,请联系作者删除!