nfsantos commented on code in PR #1156:
URL: https://github.com/apache/jackrabbit-oak/pull/1156#discussion_r1365269902
##########
oak-run-commons/src/main/java/org/apache/jackrabbit/oak/index/indexer/document/flatfile/FlatFileStoreUtils.java:
##########
@@ -75,6 +77,11 @@ public static BufferedOutputStream createOutputStream(File
file, Compression alg
return new BufferedOutputStream(algorithm.getOutputStream(out));
}
+ public static BufferedOutputStream createOutputStream(Path file,
Compression algorithm) throws IOException {
+ OutputStream out = Files.newOutputStream(file);
+ return new BufferedOutputStream(algorithm.getOutputStream(out));
+ }
+
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]