CsvReader extends FileReader implements DataReader<CsvReadOptions> { public String printColumnTypes(CsvReadOptions options) throws IOException { Table structure = read(options, true).structure(); return getTypeString(structure); } CsvReader(); static void register(ReaderRegistry registry); Table read(CsvReadOptions options); String printColumnTypes(CsvReadOptions options); @Override Table read(Source source);  }
@Test public void testPrintStructure() throws IOException { String output = "ColumnType[] columnTypes = {" + LINE_END + "LOCAL_DATE, + LINE_END + "INTEGER, + LINE_END + "STRING, + LINE_END + "}" + LINE_END; assertEquals( output, new CsvReader() .printColumnTypes( CsvReadOptions.builder("../data/bush.csv") .header(true) .separator(',') .locale(Locale.getDefault()) .sample(true) .build())); }