Commit Graph

2529 Commits

Author SHA1 Message Date
Sebastian Bazley d0035e6c7a headerMapping is only created once, so make it final
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1303455 13f79535-47bb-0310-9956-ffa450edef68
2012-03-21 16:01:31 +00:00
Sebastian Bazley 10bf28ee2e eol native
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1302383 13f79535-47bb-0310-9956-ffa450edef68
2012-03-19 11:52:10 +00:00
Sebastian Bazley 101a040805 Provide initial description
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1302263 13f79535-47bb-0310-9956-ffa450edef68
2012-03-19 03:08:09 +00:00
Sebastian Bazley 4c5dbfefa5 We need a description
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1302262 13f79535-47bb-0310-9956-ffa450edef68
2012-03-19 03:03:42 +00:00
Sebastian Bazley 564e8244b6 create strings for each field
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1302039 13f79535-47bb-0310-9956-ffa450edef68
2012-03-18 00:00:36 +00:00
Sebastian Bazley b227c29978 Add tests of ExtendedBufferedReader for comparison
Allow tests to be configured dynamically


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1302037 13f79535-47bb-0310-9956-ffa450edef68
2012-03-17 23:34:42 +00:00
Sebastian Bazley 462af64456 Simplify
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1301973 13f79535-47bb-0310-9956-ffa450edef68
2012-03-17 18:19:22 +00:00
Sebastian Bazley 83b1072703 Add test for CSV-75
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1301971 13f79535-47bb-0310-9956-ffa450edef68
2012-03-17 18:17:15 +00:00
Sebastian Bazley a019caec3f Simplify assertions, and provide details if the strings are not equal
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1301967 13f79535-47bb-0310-9956-ffa450edef68
2012-03-17 17:36:38 +00:00
Sebastian Bazley 16278171d2 Javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1301938 13f79535-47bb-0310-9956-ffa450edef68
2012-03-17 13:37:54 +00:00
Sebastian Bazley c9dedff12e CSV-67 UnicodeUnescapeReader should not be applied before parsing
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1301928 13f79535-47bb-0310-9956-ffa450edef68
2012-03-17 12:29:15 +00:00
Henri Yandell 29efef70f1 Updating copyright dates in notice per expressive last entries in each components svn log
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1301865 13f79535-47bb-0310-9956-ffa450edef68
2012-03-17 05:09:23 +00:00
Sebastian Bazley 9a705d8605 Initial checkin of test harness
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1301864 13f79535-47bb-0310-9956-ffa450edef68
2012-03-17 04:57:49 +00:00
Sebastian Bazley d422c1a8b5 Simplify and avoid boxing
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1301862 13f79535-47bb-0310-9956-ffa450edef68
2012-03-17 04:17:44 +00:00
Sebastian Bazley 530c93392c @Override; explicit unboxing
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1301861 13f79535-47bb-0310-9956-ffa450edef68
2012-03-17 04:12:16 +00:00
Sebastian Bazley 7d07c1915c Explict boxing
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1301860 13f79535-47bb-0310-9956-ffa450edef68
2012-03-17 04:11:03 +00:00
Emmanuel Bourg aee6c50e28 Header support (CSV-65)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1301852 13f79535-47bb-0310-9956-ffa450edef68
2012-03-17 01:39:04 +00:00
Sebastian Bazley d45289f384 Javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1301298 13f79535-47bb-0310-9956-ffa450edef68
2012-03-16 00:49:03 +00:00
Emmanuel Bourg 3362f9c9d8 Static imports in the unit tests
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1301084 13f79535-47bb-0310-9956-ffa450edef68
2012-03-15 16:54:30 +00:00
Gary D. Gregory 186e9f9804 Update to JUnit 4.10 from 3.8.1.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1300977 13f79535-47bb-0310-9956-ffa450edef68
2012-03-15 13:44:44 +00:00
Emmanuel Bourg 38670dbe92 Moved the lexer in a separate file
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1300850 13f79535-47bb-0310-9956-ffa450edef68
2012-03-15 08:52:05 +00:00
Emmanuel Bourg 35b954ed36 Optimized trimTrailingSpaces
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1300780 13f79535-47bb-0310-9956-ffa450edef68
2012-03-14 23:12:57 +00:00
Sebastian Bazley 861da51f24 @literal clearer than <span>
Props Benedikt Ritter

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1300707 13f79535-47bb-0310-9956-ffa450edef68
2012-03-14 20:18:56 +00:00
Sebastian Bazley 1746b7475d Document why we use CRLF rather than local line separator
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1300706 13f79535-47bb-0310-9956-ffa450edef68
2012-03-14 20:12:32 +00:00
Sebastian Bazley 0ea3603628 Javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1300699 13f79535-47bb-0310-9956-ffa450edef68
2012-03-14 19:48:12 +00:00
Sebastian Bazley bbb2da1b69 Javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1300678 13f79535-47bb-0310-9956-ffa450edef68
2012-03-14 18:34:23 +00:00
Sebastian Bazley 31896b6d43 FIx test due to change in remove() behaviour
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1300675 13f79535-47bb-0310-9956-ffa450edef68
2012-03-14 18:24:52 +00:00
Sebastian Bazley b30da4450f It's not a line, it's a record
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1300665 13f79535-47bb-0310-9956-ffa450edef68
2012-03-14 17:59:09 +00:00
Sebastian Bazley eb6ffbb7f3 Not needed outside the iterator
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1300664 13f79535-47bb-0310-9956-ffa450edef68
2012-03-14 17:57:24 +00:00
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