/** * Writes the ZIP file's central directory. * * @throws ZipException if a ZIP file error has occurred * @throws IOException if an I/O exception has occurred */ private void writeCentralDirectory() throws IOException { zipData.setCentralDirectoryOffset(stream.getCount()); CentralDirectory.write(zipData, allowZip64, stream); }