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);
}
}
throw new UnsupportedOperationException("Unsupported input format " + inFormat);