[英]how to write a blank column with CSVPrinter of apache.commons.csv
[英]Under what circumstances will the constructor of apache.commons.csv.CSVPrinter throw an IOException?
根據 org.apache.commons.csv.CSVPrinter 的文檔,將拋出 IOException “如果可選的 header 無法打印”。 但是什么會導致可選的 header 無法打印? header 中的某些字符串是否以某種方式無效?
According to the source of org.apache.commons.csv.CSVPrinter
, the constructor you link to writes any header comments, and the CSV header (if used), to the output stream given in the parameter out
. 由於這涉及寫入 output stream,因此可能會引發IOException
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.