case CSV:
return new StringListToAvro<>(new CsvWithHeaderSource(new InputStreamReader(in)), schema);
case CSV_NO_HEADER:
return new StringListToAvro<>(new CsvSource(new InputStreamReader(in)), schema);
case TSV:
return new StringListToAvro<>(new TsvWithHeaderSource(new InputStreamReader(in)), schema);
case TSV_NO_HEADER:
return new StringListToAvro<>(new TsvSource(new InputStreamReader(in)), schema);
case JDBC:
try {
return new StringListToAvro<>(new JdbcSource(fetchResultSet()), schema);