簡體   English   中英

apache.commons.csv.CSVPrinter的構造函數在什么情況下會拋出IOException?

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM