Github user afs commented on a diff in the pull request: https://github.com/apache/jena/pull/427#discussion_r192794776 --- Diff: jena-base/src/main/java/org/apache/jena/atlas/io/IO.java --- @@ -158,15 +177,18 @@ static public OutputStream openOutputFileEx(String filename) throws FileNotFound filename = IRILib.decode(filename) ; } OutputStream out = new FileOutputStream(filename) ; - if ( filename.endsWith(".gz") ) - out = new GZIPOutputStream(out) ; + String ext = FileOps.extension(filename); --- End diff -- Good idea as a separate "clean up FileOps/FileUtils" item and let this PR go in now. Got to finish sometime!
---