garydgregory commented on code in PR #634: URL: https://github.com/apache/commons-compress/pull/634#discussion_r1927245668
########## src/main/java/org/apache/commons/compress/compressors/zstandard/ZstdUtils.java: ########## @@ -134,4 +161,19 @@ public static void setCacheZstdAvailablity(final boolean doCache) { /** Private constructor to prevent instantiation of this utility class. */ private ZstdUtils() { } + + public static long readAndCompressWrite(InputStream content, OutputStream out) throws IOException { + byte[] buf = new byte[8192]; Review Comment: Or reuse `IOUtils.DEFAULT_BUFFER_SIZE`. But, this is likely not needed, see my other comments. -- 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