Commit Graph

600 Commits

Author SHA1 Message Date
Sebastian Bazley f7220c40b1 CSV-60 CSVParser.iterator().remove() should throw throw new UnsupportedOperationException()
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1300661 13f79535-47bb-0310-9956-ffa450edef68
2012-03-14 17:43:35 +00:00
Emmanuel Bourg 3cb5801a98 Replaced CharBuffer with StringBuilder (CSV-59)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1300659 13f79535-47bb-0310-9956-ffa450edef68
2012-03-14 17:42:28 +00:00
Sebastian Bazley f8294d2d22 Check that Unicode works with the MYSQL format which uses backslash as its escape character
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1300591 13f79535-47bb-0310-9956-ffa450edef68
2012-03-14 15:26:14 +00:00
Sebastian Bazley ecf59bef6e Check iterator is done
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1300585 13f79535-47bb-0310-9956-ffa450edef68
2012-03-14 15:15:18 +00:00
Sebastian Bazley 8033a710b0 Rename local variables to make them easier to read
l (ell) looks rather like 1 (one)

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1300540 13f79535-47bb-0310-9956-ffa450edef68
2012-03-14 13:38:43 +00:00
Sebastian Bazley 18d706032a Perform the cheaper test first
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1300531 13f79535-47bb-0310-9956-ffa450edef68
2012-03-14 13:03:11 +00:00
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