org.molgenis.data.csv.CsvFileExtensions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of molgenis-data-csv Show documentation
Show all versions of molgenis-data-csv Show documentation
Comma-separated data reading/writing.
package org.molgenis.data.csv;
import com.google.common.collect.ImmutableSet;
import java.util.Set;
public enum CsvFileExtensions {
CSV("csv"),
TXT("txt"),
TSV("tsv"),
ZIP("zip");
private String name;
CsvFileExtensions(String name) {
this.name = name;
}
public static Set getCSV() {
return ImmutableSet.of(CSV.toString(), TXT.toString(), TSV.toString(), ZIP.toString());
}
@Override
public String toString() {
return this.name;
}
}