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);
} catch (SQLException e) {
throw new IOException(e);