@Test public void データの途中に改行コードがある場合はLFに統一されて読み込める() throws Exception { File f = file.copy("CSVsTest-データの途中に改行コードがある場合.csv", "temp.csv"); readers = CSVs.readers(f).open(); String[] values = readers.next().get(); assertThat(readers.count(), is(1)); assertThat(values.length, is(2)); assertThat(values[0], is("1")); assertThat(values[1], is("※いろはに\nほへと")); values = readers.next().get(); assertThat(readers.count(), is(2)); assertThat(values.length, is(2)); assertThat(values[0], is("2")); assertThat(values[1], is("※いろはに\nほへと。\nあいうえお\"12345\"かきくけこ")); }
public static CSVReaders readers(File file) { return new CSVReaders(file); }
CSVs { public static CSVReaders readers(File file) { return new CSVReaders(file); } }
CSVs { public static CSVReaders readers(File file) { return new CSVReaders(file); } private  CSVs(); }
CSVs { public static CSVReaders readers(File file) { return new CSVReaders(file); } private  CSVs(); static CSVWriters writers(); static CSVWriters writers(CSVConfig config); static CSVReaders readers(File file); static CSVReaders readers(String file); static CSVReaders readers(File file, CSVConfig config); static CSVReaders readers(String file, CSVConfig config); static BeanMappingCSVReaders<T> readers(File file, Class<T> type); static BeanMappingCSVReaders<T> readers(File file, CSVConfig config, Class<T> type); static BeanMappingCSVReaders<T> readers(String file, Class<T> type); static BeanMappingCSVReaders<T> readers(String file, CSVConfig config, Class<T> type); }
CSVs { public static CSVReaders readers(File file) { return new CSVReaders(file); } private  CSVs(); static CSVWriters writers(); static CSVWriters writers(CSVConfig config); static CSVReaders readers(File file); static CSVReaders readers(String file); static CSVReaders readers(File file, CSVConfig config); static CSVReaders readers(String file, CSVConfig config); static BeanMappingCSVReaders<T> readers(File file, Class<T> type); static BeanMappingCSVReaders<T> readers(File file, CSVConfig config, Class<T> type); static BeanMappingCSVReaders<T> readers(String file, Class<T> type); static BeanMappingCSVReaders<T> readers(String file, CSVConfig config, Class<T> type);  }