mehmet-karaman commented on code in PR #655: URL: https://github.com/apache/commons-compress/pull/655#discussion_r2008459289
########## src/main/java/org/apache/commons/compress/archivers/zip/ZipFile.java: ########## @@ -167,7 +168,26 @@ public ZipFile get() throws IOException { actualDescription = path.toString(); } final boolean closeOnError = seekableByteChannel != null; - return new ZipFile(actualChannel, actualDescription, getCharset(), useUnicodeExtraFields, closeOnError, ignoreLocalFileHeader); + return new ZipFile(actualChannel, actualDescription, getCharset(), useUnicodeExtraFields, closeOnError, ignoreLocalFileHeader) { + @Override + protected InputStream createZstdInputStream(InputStream is) throws IOException { + if (zstdInpStreamCreator != null) { + return zstdInpStreamCreator.createZstdInputStream(is); + } + return super.createZstdInputStream(is); + } + }; + } + + /** + * Sets the {@link IZstdInputStreamCreator} which gives the ability to use a different zstd compression library. + * @param zstdInpStreamCreator the {@link InputStream} creator for the other zstd compression library. + * @return {@code this} instance + * @since 1.28.0 + */ + public Builder setZstdInputStreamCreator(IZstdInputStreamCreator zstdInpStreamCreator) { Review Comment: done. -- 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