gpt4 book ai didi

proguard.io.ZipOutput.writeEndOfCentralDirectory()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-20 04:16:31 26 4
gpt4 key购买 nike

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

ZipOutput.writeEndOfCentralDirectory介绍

[英]Ends the central directory.
[中]结束中央目录。

代码示例

代码示例来源:origin: syedlopez/proguard

/**
 * Closes the zip archive, also closing the underlying output stream.
 */
public void close() throws IOException
{
  // Write the central directory.
  writeStartOfCentralDirectory();
  for (int index = 0; index < zipEntries.size(); index++)
  {
    ZipEntry entry = (ZipEntry)zipEntries.get(index);
    entry.writeCentralDirectoryFileHeader();
  }
  writeEndOfCentralDirectory();
  // Close the underlying output stream.
  outputStream.close();
  // Make sure the archive can't be used any further.
  outputStream  = null;
  zipEntries    = null;
  zipEntryNames = null;
}

代码示例来源:origin: syedlopez/proguard

/**
 * Closes the zip archive, also closing the underlying output stream.
 */
public void close() throws IOException
{
  // Write the central directory.
  writeStartOfCentralDirectory();
  for (int index = 0; index < zipEntries.size(); index++)
  {
    ZipEntry entry = (ZipEntry)zipEntries.get(index);
    entry.writeCentralDirectoryFileHeader();
  }
  writeEndOfCentralDirectory();
  // Close the underlying output stream.
  outputStream.close();
  // Make sure the archive can't be used any further.
  outputStream  = null;
  zipEntries    = null;
  zipEntryNames = null;
}

代码示例来源:origin: syedlopez/proguard

/**
 * Closes the zip archive, also closing the underlying output stream.
 */
public void close() throws IOException
{
  // Write the central directory.
  writeStartOfCentralDirectory();
  for (int index = 0; index < zipEntries.size(); index++)
  {
    ZipEntry entry = (ZipEntry)zipEntries.get(index);
    entry.writeCentralDirectoryFileHeader();
  }
  writeEndOfCentralDirectory();
  // Close the underlying output stream.
  outputStream.close();
  // Make sure the archive can't be used any further.
  outputStream  = null;
  zipEntries    = null;
  zipEntryNames = null;
}

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