gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-14 05:59:31 25 4
gpt4 key购买 nike

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

ZipFile.getEntry介绍

[英]Returns a clone of the entry for the given name or null if no entry with this name exists.
[中]返回给定名称项的克隆,如果不存在具有此名称的项,则返回null。

代码示例

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

public boolean hasEntry( String path )
  throws IOException
{
  return getZipFile().getEntry( path ) != null;
}

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

public boolean hasEntry( String path )
  throws IOException
{
  return getZipFile().getEntry( path ) != null;
}

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

public boolean hasEntry( String path )
  throws IOException
{
  return getZipFile().getEntry( path ) != null;
}

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

public InputStream getEntryContent( String path )
  throws IOException
{
  ZipEntry entry = getZipFile().getEntry( path );
  if ( entry != null )
  {
    return getZipFile().getInputStream( entry );
  }
  else
  {
    return null;
  }
}

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

public InputStream getEntryContent( String path )
  throws IOException
{
  ZipEntry entry = getZipFile().getEntry( path );
  if ( entry != null )
  {
    return getZipFile().getInputStream( entry );
  }
  else
  {
    return null;
  }
}

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

public InputStream getEntryContent( String path )
  throws IOException
{
  ZipEntry entry = getZipFile().getEntry( path );
  if ( entry != null )
  {
    return getZipFile().getInputStream( entry );
  }
  else
  {
    return null;
  }
}

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

final ZipEntry entry = zipFile.getEntry(entryName);
if (entry != null) {

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

final ZipEntry entry = zipFile.getEntry(entryName);
if (entry != null) {

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

for (int i = 0; i < 30; i++) {
  final String name = i + ".txt";
  final ZipEntry entry = zipIn.getEntry(name);
  assertEquals(data1.length, entry.getSize());
  final InputStream in = zipIn.getInputStream(name);

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