gpt4 book ai didi

org.apache.commons.vfs2.provider.zip.ZipFileSystem.getZipFile()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-20 12:00:31 27 4
gpt4 key购买 nike

本文整理了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

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();

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com