public void writeTo( ZipArchiveOutputStream targetStream ) throws IOException, ExecutionException, InterruptedException { metaInfDir.writeTo( targetStream ); manifest.writeTo( targetStream ); directories.writeTo( targetStream ); synchronousEntries.writeTo( targetStream ); parallelScatterZipCreator.writeTo( targetStream ); long startAt = System.currentTimeMillis(); targetStream.close(); zipCloseElapsed = System.currentTimeMillis() - startAt; metaInfDir.close(); manifest.close(); directories.close(); synchronousEntries.close(); }
public void writeTo(ZipArchiveOutputStream zipArchiveOutputStream) throws IOException, ExecutionException, InterruptedException { logger.fine("Writing dirs"); dirs.writeTo(zipArchiveOutputStream); dirs.close(); logger.fine("Dirs written"); scatterZipCreator.writeTo(zipArchiveOutputStream); logger.fine("Files written"); }