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

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

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

相关文章