本文整理了Java中proguard.io.ZipOutput.writeStartOfCentralDirectory()
方法的一些代码示例,展示了ZipOutput.writeStartOfCentralDirectory()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZipOutput.writeStartOfCentralDirectory()
方法的具体详情如下:
包路径:proguard.io.ZipOutput
类名称:ZipOutput
方法名:writeStartOfCentralDirectory
[英]Starts 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;
}
内容来源于网络,如有侵权,请联系作者删除!