PostelnicuGeorge commented on a change in pull request #236: URL: https://github.com/apache/commons-compress/pull/236#discussion_r775064100
########## File path: src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveOutputStream.java ########## @@ -365,8 +365,33 @@ public ZipArchiveOutputStream(final Path file, final OpenOption... options) thro * @since 1.20 */ public ZipArchiveOutputStream(final File file, final long zipSplitSize) throws IOException { + this(file.toPath(), zipSplitSize); + } + + /** + * Creates a split ZIP Archive. + * + * <p>The files making up the archive will use Z01, Z02, + * ... extensions and the last part of it will be the given {@code + * file}.</p> + * + * <p>Even though the stream writes to a file this stream will + * behave as if no random access was possible. This means the + * sizes of stored entries need to be known before the actual + * entry data is written.</p> + * + * @param path the file that will become the last part of the split archive + * @param zipSplitSize maximum size of a single part of the split + * archive created by this stream. Must be between 64kB and about + * 4GB. + * Review comment: Tried my best to undo unrelated changes and keep new things compact and correct. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@commons.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org