Commit Graph

194 Commits

Author SHA1 Message Date
Emmanuel Bourg d2c8f90800 Improved test coverage
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1300516 13f79535-47bb-0310-9956-ffa450edef68
2012-03-14 12:01:47 +00:00
Emmanuel Bourg 637426c50d Removed unused methods from CharBuffer
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1300491 13f79535-47bb-0310-9956-ffa450edef68
2012-03-14 10:01:55 +00:00
Emmanuel Bourg 9141cb39e6 Changed while loops (CSV-55)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1299706 13f79535-47bb-0310-9956-ffa450edef68
2012-03-12 15:12:55 +00:00
Emmanuel Bourg afc831bcb8 Optimized ExtendedBufferedReader as suggested by Bob Smith in CSV-42 (improves the performance by 30%)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1299618 13f79535-47bb-0310-9956-ffa450edef68
2012-03-12 10:47:15 +00:00
Emmanuel Bourg 12b600c252 Serialization test for CSVFormat
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1299580 13f79535-47bb-0310-9956-ffa450edef68
2012-03-12 08:45:34 +00:00
Emmanuel Bourg 94b9f8dc95 Minor performance improvement (~2%)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1299486 13f79535-47bb-0310-9956-ffa450edef68
2012-03-11 23:23:37 +00:00
Emmanuel Bourg 740a1b6993 Removed the volatile modifier on the fields in CSVFormat to improve the performances
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1299479 13f79535-47bb-0310-9956-ffa450edef68
2012-03-11 23:01:23 +00:00
Niall Pemberton 107c90daae Fix issue-tracking page config & re-generate
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1299315 13f79535-47bb-0310-9956-ffa450edef68
2012-03-11 00:13:46 +00:00
Gary D. Gregory dcd7a8e061 A logo with TM mark.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1299135 13f79535-47bb-0310-9956-ffa450edef68
2012-03-10 01:44:42 +00:00
Sebastian Bazley bc9ca611fb Props Simo
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1299133 13f79535-47bb-0310-9956-ffa450edef68
2012-03-10 01:40:58 +00:00
Sebastian Bazley 8803bd5016 Logo will go here
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1299118 13f79535-47bb-0310-9956-ffa450edef68
2012-03-10 00:36:21 +00:00
Sebastian Bazley a73628d09f CSV moved to proper
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1299115 13f79535-47bb-0310-9956-ffa450edef68
2012-03-10 00:26:29 +00:00
Sebastian Bazley a23f4b6936 CSV moved to proper
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1299110 13f79535-47bb-0310-9956-ffa450edef68
2012-03-09 23:56:10 +00:00
Sebastian Bazley a73a289ac4 CSV moving to proper
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1299104 13f79535-47bb-0310-9956-ffa450edef68
2012-03-09 23:46:49 +00:00
Sebastian Bazley 883780bcf6 Javadoc fix
git-svn-id: https://svn.apache.org/repos/asf/commons/sandbox/csv/trunk@1298953 13f79535-47bb-0310-9956-ffa450edef68
2012-03-09 18:15:02 +00:00
Emmanuel Bourg 7ccc4c7c01 Made the fields of CSVFormat volatile to ensure its thread safety (SANDBOX-408)
git-svn-id: https://svn.apache.org/repos/asf/commons/sandbox/csv/trunk@1298910 13f79535-47bb-0310-9956-ffa450edef68
2012-03-09 16:42:06 +00:00
Sebastian Bazley 84e46bd585 Missing @Override
git-svn-id: https://svn.apache.org/repos/asf/commons/sandbox/csv/trunk@1298517 13f79535-47bb-0310-9956-ffa450edef68
2012-03-08 19:12:23 +00:00
Emmanuel Bourg 2ec4c994c0 Renamed CSVParser.getLine() into getRecord() to avoid confusions since a record can span several lines
git-svn-id: https://svn.apache.org/repos/asf/commons/sandbox/csv/trunk@1298333 13f79535-47bb-0310-9956-ffa450edef68
2012-03-08 09:59:51 +00:00
Emmanuel Bourg a65806a126 Validation of the format parameters (suggested by Bob Smith in SANDBOX-291)
git-svn-id: https://svn.apache.org/repos/asf/commons/sandbox/csv/trunk@1298234 13f79535-47bb-0310-9956-ffa450edef68
2012-03-08 00:00:42 +00:00
Sebastian Bazley 72d6e797ca private field unchanged after construction, so might as well be final
git-svn-id: https://svn.apache.org/repos/asf/commons/sandbox/csv/trunk@1298225 13f79535-47bb-0310-9956-ffa450edef68
2012-03-07 23:42:23 +00:00
Sebastian Bazley ac6e85792f Stop Eclipse complaining about fall-through
git-svn-id: https://svn.apache.org/repos/asf/commons/sandbox/csv/trunk@1298223 13f79535-47bb-0310-9956-ffa450edef68
2012-03-07 23:41:14 +00:00
Sebastian Bazley 5e12903325 private fields are unchanged after construction, so might as well be final
git-svn-id: https://svn.apache.org/repos/asf/commons/sandbox/csv/trunk@1298221 13f79535-47bb-0310-9956-ffa450edef68
2012-03-07 23:38:46 +00:00
Sebastian Bazley 78d3d98406 Silence Eclipse warning about unthrown Exception
git-svn-id: https://svn.apache.org/repos/asf/commons/sandbox/csv/trunk@1298217 13f79535-47bb-0310-9956-ffa450edef68
2012-03-07 23:35:46 +00:00
Sebastian Bazley 660f37a20a @Override + Javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/sandbox/csv/trunk@1298215 13f79535-47bb-0310-9956-ffa450edef68
2012-03-07 23:34:39 +00:00
Emmanuel Bourg 194e21c283 More Javadoc for CSVFormat
git-svn-id: https://svn.apache.org/repos/asf/commons/sandbox/csv/trunk@1298176 13f79535-47bb-0310-9956-ffa450edef68
2012-03-07 22:34:51 +00:00
Emmanuel Bourg ca7bbae40e Extracted the lexer from CSVParser in a distinct class (suggested by Bob Smith)
git-svn-id: https://svn.apache.org/repos/asf/commons/sandbox/csv/trunk@1298033 13f79535-47bb-0310-9956-ffa450edef68
2012-03-07 18:21:52 +00:00
Emmanuel Bourg 898b7f9629 Added a mutator to CSVFormat to change the trimming behavior at both ends
git-svn-id: https://svn.apache.org/repos/asf/commons/sandbox/csv/trunk@1298013 13f79535-47bb-0310-9956-ffa450edef68
2012-03-07 16:32:36 +00:00
Emmanuel Bourg 00d0def695 Replaced the unicode escaping code from the parser with a class implementing java.io.Reader
git-svn-id: https://svn.apache.org/repos/asf/commons/sandbox/csv/trunk@1298001 13f79535-47bb-0310-9956-ffa450edef68
2012-03-07 15:58:12 +00:00
Emmanuel Bourg 60709c2040 Added a predefined format for MySQL (SANDBOX-410)
git-svn-id: https://svn.apache.org/repos/asf/commons/sandbox/csv/trunk@1297944 13f79535-47bb-0310-9956-ffa450edef68
2012-03-07 11:29:32 +00:00
Emmanuel Bourg 4f3ef66ce3 Removed the constructors of CSVFormat from the public API, as well as the DISABLED constant which becomes useless because the special characters are disabled by default in the predefined formats
git-svn-id: https://svn.apache.org/repos/asf/commons/sandbox/csv/trunk@1297930 13f79535-47bb-0310-9956-ffa450edef68
2012-03-07 11:02:52 +00:00
Emmanuel Bourg 516b82b471 Made all public methods in CharBuffer and ExtendedBufferedReader package private
git-svn-id: https://svn.apache.org/repos/asf/commons/sandbox/csv/trunk@1297719 13f79535-47bb-0310-9956-ffa450edef68
2012-03-06 21:00:44 +00:00
Emmanuel Bourg 9dd3dda09f Removed the package private method CSVParser.nextToken()
git-svn-id: https://svn.apache.org/repos/asf/commons/sandbox/csv/trunk@1297431 13f79535-47bb-0310-9956-ffa450edef68
2012-03-06 11:23:04 +00:00
Emmanuel Bourg 6cf4a36a4e Added a note in the Javadoc explaining the issue with the value separator for the Excel format (SANDBOX-263)
git-svn-id: https://svn.apache.org/repos/asf/commons/sandbox/csv/trunk@1297429 13f79535-47bb-0310-9956-ffa450edef68
2012-03-06 11:20:36 +00:00
Emmanuel Bourg 4ea25c050e Removed the writer package (SANDBOX-269), fixed width fields are out of the scope of [csv]
git-svn-id: https://svn.apache.org/repos/asf/commons/sandbox/csv/trunk@1297383 13f79535-47bb-0310-9956-ffa450edef68
2012-03-06 08:46:26 +00:00
Emmanuel Bourg e7434e5cb5 Changed CSVPrinter to print to any Appendable and optimized the internals to avoid string copies
git-svn-id: https://svn.apache.org/repos/asf/commons/sandbox/csv/trunk@1297309 13f79535-47bb-0310-9956-ffa450edef68
2012-03-06 00:48:34 +00:00
Emmanuel Bourg e80b8112a7 Fixed the NullPointerException on null values in CSVPrinter and print an empty value instead (SANDBOX-209)
git-svn-id: https://svn.apache.org/repos/asf/commons/sandbox/csv/trunk@1297306 13f79535-47bb-0310-9956-ffa450edef68
2012-03-06 00:09:51 +00:00
Emmanuel Bourg fafacd179d Made CSVPrinter.print(char[], int, int, boolean) private
git-svn-id: https://svn.apache.org/repos/asf/commons/sandbox/csv/trunk@1297138 13f79535-47bb-0310-9956-ffa450edef68
2012-03-05 17:30:44 +00:00
Emmanuel Bourg 323b7aedae Varargs for CSVPrinter.println()
git-svn-id: https://svn.apache.org/repos/asf/commons/sandbox/csv/trunk@1297136 13f79535-47bb-0310-9956-ffa450edef68
2012-03-05 17:28:56 +00:00
Emmanuel Bourg f6c0433b65 Added a constructor with a String to CSVParser and removed CSVUtils
git-svn-id: https://svn.apache.org/repos/asf/commons/sandbox/csv/trunk@1297135 13f79535-47bb-0310-9956-ffa450edef68
2012-03-05 17:27:28 +00:00
Emmanuel Bourg 1a35541867 Added a convenient format() method in CSVFormat replacing CSVUtils.printLine()
git-svn-id: https://svn.apache.org/repos/asf/commons/sandbox/csv/trunk@1297091 13f79535-47bb-0310-9956-ffa450edef68
2012-03-05 15:42:03 +00:00
Emmanuel Bourg a53c76b43a Removed unused methods from CharBuffer
git-svn-id: https://svn.apache.org/repos/asf/commons/sandbox/csv/trunk@1297078 13f79535-47bb-0310-9956-ffa450edef68
2012-03-05 15:01:41 +00:00
Emmanuel Bourg fa5dca3be1 Test cases for CSVPrinter.printComment()
git-svn-id: https://svn.apache.org/repos/asf/commons/sandbox/csv/trunk@1297075 13f79535-47bb-0310-9956-ffa450edef68
2012-03-05 14:42:14 +00:00
Emmanuel Bourg 7bd9d1d970 Updated the Javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/sandbox/csv/trunk@1297043 13f79535-47bb-0310-9956-ffa450edef68
2012-03-05 13:08:19 +00:00
Emmanuel Bourg 312f5b033e Added a convenient parse() method to CSVFormat
git-svn-id: https://svn.apache.org/repos/asf/commons/sandbox/csv/trunk@1297022 13f79535-47bb-0310-9956-ffa450edef68
2012-03-05 12:12:04 +00:00
Emmanuel Bourg c7f90f93c6 Changed the default line separator to \r\n to comply with RFC 4180 (SANDBOX-163)
git-svn-id: https://svn.apache.org/repos/asf/commons/sandbox/csv/trunk@1201115 13f79535-47bb-0310-9956-ffa450edef68
2011-11-12 00:16:56 +00:00
Emmanuel Bourg 70337bef8f Changed the return type of CSVFormat.clone()
git-svn-id: https://svn.apache.org/repos/asf/commons/sandbox/csv/trunk@1201060 13f79535-47bb-0310-9956-ffa450edef68
2011-11-11 21:34:36 +00:00
Emmanuel Bourg 2598862d94 Fixed the immutability of the delimiter in CSVFormat
git-svn-id: https://svn.apache.org/repos/asf/commons/sandbox/csv/trunk@1200283 13f79535-47bb-0310-9956-ffa450edef68
2011-11-10 11:58:02 +00:00
David Brosius 9acd5cd4d3 bad logic, should use || rather than &&, but instanceof covers the null case anyway
git-svn-id: https://svn.apache.org/repos/asf/commons/sandbox/csv/trunk@1200112 13f79535-47bb-0310-9956-ffa450edef68
2011-11-10 03:37:47 +00:00
Emmanuel Bourg 2417ea6c4e Changed the signature of CSVUtils.printLine() to use varargs
git-svn-id: https://svn.apache.org/repos/asf/commons/sandbox/csv/trunk@1200065 13f79535-47bb-0310-9956-ffa450edef68
2011-11-10 00:41:43 +00:00
Emmanuel Bourg 9cb66ca7fb Reduced the constants in CSVFormat for disabling the features to only one
git-svn-id: https://svn.apache.org/repos/asf/commons/sandbox/csv/trunk@1200061 13f79535-47bb-0310-9956-ffa450edef68
2011-11-10 00:26:09 +00:00