* @param af The analyst format.
* @return The CSV format.
*/
public static CSVFormat convertToCSVFormat(final AnalystFileFormat af) {
if (af == AnalystFileFormat.DECPNT_COMMA) {
return new CSVFormat('.', ',');
} else if (af == AnalystFileFormat.DECPNT_SPACE) {
return new CSVFormat('.', ' ');
} else if (af == AnalystFileFormat.DECPNT_SEMI) {
return new CSVFormat('.', ';');
} else if (af == AnalystFileFormat.DECCOMMA_SPACE) {
return new CSVFormat(',', ' ');
} else if (af == AnalystFileFormat.DECCOMMA_SEMI) {
return new CSVFormat(',', ';');
} else {
return null;
}
}