本文整理了Java中org.apache.commons.vfs2.provider.zip.ZipFileSystem.getZipFile()
方法的一些代码示例,展示了ZipFileSystem.getZipFile()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZipFileSystem.getZipFile()
方法的具体详情如下:
包路径:org.apache.commons.vfs2.provider.zip.ZipFileSystem
类名称:ZipFileSystem
方法名:getZipFile
暂无
代码示例来源:origin: com.github.abashev/commons-vfs2
@Override
protected ZipFile getZipFile() throws FileSystemException {
// make accessible
return super.getZipFile();
}
代码示例来源:origin: org.apache.commons/commons-vfs2
@Override
protected ZipFile getZipFile() throws FileSystemException {
// make accessible
return super.getZipFile();
}
代码示例来源:origin: apache/commons-vfs
@Override
protected ZipFile getZipFile() throws FileSystemException {
// make accessible
return super.getZipFile();
}
代码示例来源:origin: org.apache.commons/commons-vfs2
@Override
protected void doAttach() throws Exception {
getAbstractFileSystem().getZipFile();
}
代码示例来源:origin: com.github.abashev/commons-vfs2
@Override
protected void doAttach() throws Exception {
getAbstractFileSystem().getZipFile();
}
代码示例来源:origin: apache/commons-vfs
@Override
protected void doAttach() throws Exception {
getAbstractFileSystem().getZipFile();
}
代码示例来源:origin: com.github.abashev/commons-vfs2
/**
* Creates an input stream to read the file content from. Is only called if {@link #doGetType} returns
* {@link FileType#FILE}. The input stream returned by this method is guaranteed to be closed before this method is
* called again.
*/
@Override
protected InputStream doGetInputStream() throws Exception {
// VFS-210: zip allows to gather an input stream even from a directory and will
// return -1 on the first read. getType should not be expensive and keeps the tests
// running
if (!getType().hasContent()) {
throw new FileSystemException("vfs.provider/read-not-file.error", getName());
}
return getAbstractFileSystem().getZipFile().getInputStream(entry);
}
代码示例来源:origin: org.apache.commons/commons-vfs2
/**
* Creates an input stream to read the file content from. Is only called if {@link #doGetType} returns
* {@link FileType#FILE}. The input stream returned by this method is guaranteed to be closed before this method is
* called again.
*/
@Override
protected InputStream doGetInputStream() throws Exception {
// VFS-210: zip allows to gather an input stream even from a directory and will
// return -1 on the first read. getType should not be expensive and keeps the tests
// running
if (!getType().hasContent()) {
throw new FileSystemException("vfs.provider/read-not-file.error", getName());
}
return getAbstractFileSystem().getZipFile().getInputStream(entry);
}
代码示例来源:origin: apache/commons-vfs
/**
* Creates an input stream to read the file content from. Is only called if {@link #doGetType} returns
* {@link FileType#FILE}. The input stream returned by this method is guaranteed to be closed before this method is
* called again.
*/
@Override
protected InputStream doGetInputStream() throws Exception {
// VFS-210: zip allows to gather an input stream even from a directory and will
// return -1 on the first read. getType should not be expensive and keeps the tests
// running
if (!getType().hasContent()) {
throw new FileSystemException("vfs.provider/read-not-file.error", getName());
}
return getAbstractFileSystem().getZipFile().getInputStream(entry);
}
代码示例来源:origin: org.apache.commons/commons-vfs2
final List<ZipFileObject> strongRef = new ArrayList<>(getZipFile().size());
final Enumeration<? extends ZipEntry> entries = getZipFile().entries();
while (entries.hasMoreElements()) {
final ZipEntry entry = entries.nextElement();
代码示例来源:origin: com.github.abashev/commons-vfs2
final List<ZipFileObject> strongRef = new ArrayList<>(getZipFile().size());
final Enumeration<? extends ZipEntry> entries = getZipFile().entries();
while (entries.hasMoreElements()) {
final ZipEntry entry = entries.nextElement();
代码示例来源:origin: apache/commons-vfs
final List<ZipFileObject> strongRef = new ArrayList<>(getZipFile().size());
final Enumeration<? extends ZipEntry> entries = getZipFile().entries();
while (entries.hasMoreElements()) {
final ZipEntry entry = entries.nextElement();
内容来源于网络,如有侵权,请联系作者删除!