This is a small proof-of-concept extension to Apache Commons CSV which uses the already avaliable compression libraries to pick the right CSVFormat for a previously unseen CSV file.
See https://commons.apache.org/proper/commons-csv/ https://commons.apache.org/proper/commons-csv/apidocs/org/apache/commons/csv/CSVFormat.html