de.schlichtherle.truezip.zip.ZipFile.entries()方法的使用及代码示例

x33g5p2x  于2022-02-05 转载在 其他  
字(2.6k)|赞(0)|评价(0)|浏览(133)

本文整理了Java中de.schlichtherle.truezip.zip.ZipFile.entries()方法的一些代码示例,展示了ZipFile.entries()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZipFile.entries()方法的具体详情如下:
包路径:de.schlichtherle.truezip.zip.ZipFile
类名称:ZipFile
方法名:entries

ZipFile.entries介绍

[英]Enumerates clones of all entries in this ZIP file.
[中]枚举此ZIP文件中所有条目的克隆。

代码示例

代码示例来源:origin: uk.gov.nationalarchives/droid-core-interfaces

public ZipFileIterator(ZipFile fileToIterate) {
  entries = fileToIterate.entries();
}

代码示例来源:origin: digital-preservation/droid

public ZipFileIterator(ZipFile fileToIterate) {
  entries = fileToIterate.entries();
}

代码示例来源:origin: org.apache.maven.indexer/indexer-core

public List<String> getEntries( EntryNameFilter filter )
{
  ArrayList<String> entries = new ArrayList<String>();
  Enumeration<? extends ZipEntry> en = getZipFile().entries();
  while ( en.hasMoreElements() )
  {
    final ZipEntry e = en.nextElement();
    final String name = e.getName();
    if ( filter != null && !filter.accepts( name ) )
    {
      continue;
    }
    entries.add( name );
  }
  return entries;
}

代码示例来源:origin: apache/maven-indexer

public List<String> getEntries( EntryNameFilter filter )
{
  ArrayList<String> entries = new ArrayList<String>();
  Enumeration<? extends ZipEntry> en = getZipFile().entries();
  while ( en.hasMoreElements() )
  {
    final ZipEntry e = en.nextElement();
    final String name = e.getName();
    if ( filter != null && !filter.accepts( name ) )
    {
      continue;
    }
    entries.add( name );
  }
  return entries;
}

代码示例来源:origin: org.jboss.windup.org.apache.maven.indexer/indexer-core

public List<String> getEntries( EntryNameFilter filter )
{
  ArrayList<String> entries = new ArrayList<String>();
  Enumeration<? extends ZipEntry> en = getZipFile().entries();
  while ( en.hasMoreElements() )
  {
    final ZipEntry e = en.nextElement();
    final String name = e.getName();
    if ( filter != null && !filter.accepts( name ) )
    {
      continue;
    }
    entries.add( name );
  }
  return entries;
}

代码示例来源:origin: uk.gov.nationalarchives/droid-results

for (Enumeration<? extends ZipEntry> it = zip.entries(); it
    .hasMoreElements();) {
  ZipEntry e = it.nextElement();
for (Enumeration<? extends ZipEntry> it = zip.entries(); it
    .hasMoreElements();) {
  ZipEntry entry = it.nextElement();

代码示例来源:origin: digital-preservation/droid

for (final Enumeration<? extends ZipEntry> it = zip.entries(); it
    .hasMoreElements();) {
  ZipEntry e = it.nextElement();
for (final Enumeration<? extends ZipEntry> it = zip.entries(); it
    .hasMoreElements();) {
  ZipEntry entry = it.nextElement();

代码示例来源:origin: de.schlichtherle.truezip/truezip-driver-zip

try {
  final byte[] buf = new byte[data.length];
  for (   final Enumeration<? extends ZipEntry> e = zf.entries();
      e.hasMoreElements(); ) {
    final ZipEntry entry = e.nextElement();

相关文章