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

The constructor for Csv objects is now public, and Csv.getInstance() is now deprecated.

上级 f75b7fa9
...@@ -28,7 +28,7 @@ public class GenerateHelp { ...@@ -28,7 +28,7 @@ public class GenerateHelp {
public static void main(String... args) throws Exception { public static void main(String... args) throws Exception {
String in = "src/docsrc/help/help.csv"; String in = "src/docsrc/help/help.csv";
String out = "src/main/org/h2/res/help.csv"; String out = "src/main/org/h2/res/help.csv";
Csv csv = Csv.getInstance(); Csv csv = new Csv();
csv.setLineCommentCharacter('#'); csv.setLineCommentCharacter('#');
ResultSet rs = csv.read(in, null, null); ResultSet rs = csv.read(in, null, null);
SimpleResultSet rs2 = new SimpleResultSet(); SimpleResultSet rs2 = new SimpleResultSet();
...@@ -56,7 +56,7 @@ public class GenerateHelp { ...@@ -56,7 +56,7 @@ public class GenerateHelp {
"# Version 1.0, and under the Eclipse Public License, Version 1.0\n" + "# Version 1.0, and under the Eclipse Public License, Version 1.0\n" +
"# (http://h2database.com/html/license.html).\n" + "# (http://h2database.com/html/license.html).\n" +
"# Initial Developer: H2 Group)\n"); "# Initial Developer: H2 Group)\n");
csv = Csv.getInstance(); csv = new Csv();
csv.setLineSeparator("\n"); csv.setLineSeparator("\n");
csv.write(writer, rs2); csv.write(writer, rs2);
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论