Github user kinow commented on a diff in the pull request:
https://github.com/apache/jena/pull/427#discussion_r192701731
--- 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 --
Digressing; but as we have `FilenameUtils.getExtension()` in the classpath,
from commons-io, perhaps this could later be marked as `deprecated`?
---