提交 b55c846d authored 作者: Thomas Mueller's avatar Thomas Mueller

Documentation: the javadocs for Csv.write and read used the wrong default charset.

上级 f8fca82f
...@@ -122,8 +122,9 @@ public class Csv implements SimpleRowSource { ...@@ -122,8 +122,9 @@ public class Csv implements SimpleRowSource {
* *
* @param outputFileName the name of the csv file * @param outputFileName the name of the csv file
* @param rs the result set - the result set must be positioned before the * @param rs the result set - the result set must be positioned before the
* first row. * first row.
* @param charset the charset or null to use UTF-8 * @param charset the charset or null to use the system default charset
* (see system property file.encoding)
* @return the number of rows written * @return the number of rows written
* @throws SQLException * @throws SQLException
*/ */
...@@ -143,7 +144,8 @@ public class Csv implements SimpleRowSource { ...@@ -143,7 +144,8 @@ public class Csv implements SimpleRowSource {
* @param conn the connection * @param conn the connection
* @param outputFileName the file name * @param outputFileName the file name
* @param sql the query * @param sql the query
* @param charset the charset or null to use UTF-8 * @param charset the charset or null to use the system default charset
* (see system property file.encoding)
* @return the number of rows written * @return the number of rows written
* @throws SQLException * @throws SQLException
*/ */
...@@ -168,8 +170,9 @@ public class Csv implements SimpleRowSource { ...@@ -168,8 +170,9 @@ public class Csv implements SimpleRowSource {
* *
* @param inputFileName the file name * @param inputFileName the file name
* @param colNames or null if the column names should be read from the CSV * @param colNames or null if the column names should be read from the CSV
* file * file
* @param charset the charset or null to use UTF-8 * @param charset the charset or null to use the system default charset
* (see system property file.encoding)
* @return the result set * @return the result set
* @throws SQLException * @throws SQLException
*/ */
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论