public CsvOutputFormat(String recordDelimiter, String fieldDelimiter, Class<? extends Value>... types) {
if (recordDelimiter == null) {
throw new IllegalArgumentException("RecordDelmiter shall not be null.");
}
if (fieldDelimiter == null) {
throw new IllegalArgumentException("FieldDelimiter shall not be null.");
}
if (types.length == 0) {
throw new IllegalArgumentException("No field types given.");
}
this.fieldDelimiter = fieldDelimiter;
this.recordDelimiter = recordDelimiter;
this.lenient = false;
setTypes(types);
ctorInstantiation = true;
}