【发布时间】:2018-05-15 16:55:54
【问题描述】:
我正在使用 org.apache.commons.csv.CSVFormat 来输出 csv 文件。我的配置如下:
String[] HEADERS = {"sku", "question", "annotation", "answer", "url", "answerType"};
CSVFormat csvInFormat = CSVFormat.DEFAULT.withHeader(HEADERS);
CSVPrinter printer = new CSVPrinter(bw, csvInFormat);
这将打印以逗号分隔的 csv。如何输出以tab为分隔符的内容?
【问题讨论】: