@Test public void OPEN後に書き込みできる() throws Exception { CSVWriters writers = CSVs.writers(CSVConfigs.config().tempDir(file.getRoot().getAbsolutePath())).touch().open(); writers.write(new String[] {}); writers.write(new String[] { null }); writers.write(new String[] { "いろは", "<,>", "<\t>", "<\\t>" }); writers.write(new String[] { "<'>", "<\">", "<\r\n>" }); DownloadFile f = writers.get(); assertThat(writers.count(), is(4)); writers.close(); File tmp = new File(f.getTempFileName()); String content = FileUtils.readFileToString(tmp, "MS932"); assertThat(content, is(file.load("CSVsTest-OPEN後に書き込みできる.csv"))); }
public static CSVWriters writers() { return new CSVWriters(); }
CSVs { public static CSVWriters writers() { return new CSVWriters(); } }
CSVs { public static CSVWriters writers() { return new CSVWriters(); } private  CSVs(); }
CSVs { public static CSVWriters writers() { return new CSVWriters(); } 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 CSVWriters writers() { return new CSVWriters(); } 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);  }