Commit Graph

705 Commits

Author SHA1 Message Date
Benedikt Ritter 1299090016 mvn clean site will not create the jar for you
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1522812 13f79535-47bb-0310-9956-ffa450edef68
2013-09-13 08:34:05 +00:00
Benedikt Ritter 46ce06d3ff We are really iterating over records here
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1522811 13f79535-47bb-0310-9956-ffa450edef68
2013-09-13 08:29:49 +00:00
Benedikt Ritter 67155b3d52 Add reference to RFC 4180
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1522810 13f79535-47bb-0310-9956-ffa450edef68
2013-09-13 08:23:26 +00:00
Benedikt Ritter 0a6f94b2a3 Add alternative abbreviation
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1522809 13f79535-47bb-0310-9956-ffa450edef68
2013-09-13 08:14:54 +00:00
Benedikt Ritter 10b1110942 Always write 'CSV' in capital letters
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1522807 13f79535-47bb-0310-9956-ffa450edef68
2013-09-13 08:09:32 +00:00
Benedikt Ritter c43e8fa5de Remove fallback logic for charset parameter
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1519269 13f79535-47bb-0310-9956-ffa450edef68
2013-09-01 13:36:08 +00:00
Benedikt Ritter 724c88dbec Remove unnecessary generics
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1518974 13f79535-47bb-0310-9956-ffa450edef68
2013-08-30 14:10:49 +00:00
Benedikt Ritter 6c44286b6d Add missing license headers
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1518808 13f79535-47bb-0310-9956-ffa450edef68
2013-08-29 20:25:19 +00:00
Benedikt Ritter a2fef00ab8 Make methods that create parsers or printers fail early and provide an expressive error messages. Document new behavior in JavaDoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1518802 13f79535-47bb-0310-9956-ffa450edef68
2013-08-29 20:18:13 +00:00
Benedikt Ritter 33cf289907 Remove factory methods for creating CSVParsers for classpath resources
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1513994 13f79535-47bb-0310-9956-ffa450edef68
2013-08-14 18:07:13 +00:00
Benedikt Ritter 817561f4d7 Add test that documents behavior of multiple iterators over the same CSVParser.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1513228 13f79535-47bb-0310-9956-ffa450edef68
2013-08-12 19:23:16 +00:00
Benedikt Ritter 5a30b37043 Fix typo
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1512650 13f79535-47bb-0310-9956-ffa450edef68
2013-08-10 11:46:28 +00:00
Benedikt Ritter 012146e476 Make checkstyle happy: Line was longer than 120 chars
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1512626 13f79535-47bb-0310-9956-ffa450edef68
2013-08-10 11:08:57 +00:00
Benedikt Ritter e0b79fe691 Make checkstyle happy: Line was longer than 120 chars, file contained tabs
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1512625 13f79535-47bb-0310-9956-ffa450edef68
2013-08-10 11:07:15 +00:00
Benedikt Ritter 1e70eaaaf4 Make checkstyle happy: remove trailing whitespace
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1512624 13f79535-47bb-0310-9956-ffa450edef68
2013-08-10 11:05:10 +00:00
Benedikt Ritter 5db1a2c110 Make checkstyle happy: remove trailing white spaces, break line that was longer than 120 chars.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1512623 13f79535-47bb-0310-9956-ffa450edef68
2013-08-10 11:04:34 +00:00
Benedikt Ritter df7b7d39cc Remove redundant cast
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1512622 13f79535-47bb-0310-9956-ffa450edef68
2013-08-10 10:58:42 +00:00
Benedikt Ritter 375b273ced No need for explicitly creating an array. Arrays.asList is a varargs method.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1512621 13f79535-47bb-0310-9956-ffa450edef68
2013-08-10 10:57:32 +00:00
Benedikt Ritter c75345870e Fix JavaDoc references
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1512620 13f79535-47bb-0310-9956-ffa450edef68
2013-08-10 10:52:09 +00:00
Benedikt Ritter 6b27379c40 Fix JavaDoc references
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1512619 13f79535-47bb-0310-9956-ffa450edef68
2013-08-10 10:51:43 +00:00
Benedikt Ritter 4213415b2c Don't make JavaDoc references from production code to test code
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1512618 13f79535-47bb-0310-9956-ffa450edef68
2013-08-10 10:49:30 +00:00
Benedikt Ritter 04a2e9ebe4 Remove unused method. It made no sense anyway, since Assert.assertArrayEquals is capable of comparing multi dimensional arrays.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1512617 13f79535-47bb-0310-9956-ffa450edef68
2013-08-10 10:46:03 +00:00
Benedikt Ritter 8b74f0aaff Utils class is only used for internal testing, it can be package private. Also make it final since it should not be extended.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1512615 13f79535-47bb-0310-9956-ffa450edef68
2013-08-10 10:41:27 +00:00
Benedikt Ritter 06630f4b4b Make members private, they are only needed in this test case
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1512614 13f79535-47bb-0310-9956-ffa450edef68
2013-08-10 10:39:48 +00:00
Benedikt Ritter 9631efe688 Methods are no longer used in test code. Make them private.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1512610 13f79535-47bb-0310-9956-ffa450edef68
2013-08-10 10:32:19 +00:00
Benedikt Ritter 15b4e3f539 Sort members alphabetically
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1512606 13f79535-47bb-0310-9956-ffa450edef68
2013-08-10 10:30:48 +00:00
Benedikt Ritter 1756e67623 Simplify if statements
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1512399 13f79535-47bb-0310-9956-ffa450edef68
2013-08-09 17:09:37 +00:00
Benedikt Ritter a223126567 No need to declare private method final
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1512398 13f79535-47bb-0310-9956-ffa450edef68
2013-08-09 17:06:48 +00:00
Gary D. Gregory 152d50c4f7 Remove type names from static factory APIs in org.apache.commons.csv.CSVParser.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1511883 13f79535-47bb-0310-9956-ffa450edef68
2013-08-08 17:11:03 +00:00
Gary D. Gregory a36bbffdd3 Remove org.apache.commons.csv.CSVParser.parseString(String).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1511868 13f79535-47bb-0310-9956-ffa450edef68
2013-08-08 16:52:00 +00:00
Gary D. Gregory 65f6f1dfe8 Package private classes are not prefixed with "CSV": CSVLexer -> Lexer.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1511462 13f79535-47bb-0310-9956-ffa450edef68
2013-08-07 20:00:26 +00:00
Benedikt Ritter 643b628af4 Replace tabs with spaces
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1511428 13f79535-47bb-0310-9956-ffa450edef68
2013-08-07 18:25:44 +00:00
Gary D. Gregory 53f83b4f18 Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1511039 13f79535-47bb-0310-9956-ffa450edef68
2013-08-06 17:12:26 +00:00
Sebastian Bazley aede94a857 Make fields private
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1511015 13f79535-47bb-0310-9956-ffa450edef68
2013-08-06 16:01:24 +00:00
Sebastian Bazley 7b168ebbbe Merge Lexer with CSVLexer
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1511006 13f79535-47bb-0310-9956-ffa450edef68
2013-08-06 15:44:41 +00:00
Sebastian Bazley 7755640784 No longer wanted
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1511005 13f79535-47bb-0310-9956-ffa450edef68
2013-08-06 15:43:10 +00:00
Gary D. Gregory 8d8bbf459e [CSV-42] Lots of possible changes. Add Bob Smith as a contributor.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1510967 13f79535-47bb-0310-9956-ffa450edef68
2013-08-06 14:18:40 +00:00
Gary D. Gregory a064b97305 [CSV-42] Lots of possible changes: Make classes final.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1510761 13f79535-47bb-0310-9956-ffa450edef68
2013-08-05 21:45:01 +00:00
Gary D. Gregory 258387e3ce Use US English spelling of 'recognized'.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1510664 13f79535-47bb-0310-9956-ffa450edef68
2013-08-05 19:10:04 +00:00
Gary D. Gregory ed72da2552 Remove extra semicolon.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1510660 13f79535-47bb-0310-9956-ffa450edef68
2013-08-05 19:03:09 +00:00
Gary D. Gregory b042bd8522 Remove primitive APIs in CSVRecord.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1510455 13f79535-47bb-0310-9956-ffa450edef68
2013-08-05 12:43:23 +00:00
Sebastian Bazley 6208f0c9af Fix up TODOs
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1509967 13f79535-47bb-0310-9956-ffa450edef68
2013-08-03 11:59:28 +00:00
Sebastian Bazley 3fd92ec4a4 Use NotEscaped where character has not been escaped
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1509966 13f79535-47bb-0310-9956-ffa450edef68
2013-08-03 11:51:21 +00:00
Benedikt Ritter 575c88d8a2 Add some more tests that document escaping behavior
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1509957 13f79535-47bb-0310-9956-ffa450edef68
2013-08-03 11:12:48 +00:00
Benedikt Ritter 3178725e98 Align test names to other tests of the same kind
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1509956 13f79535-47bb-0310-9956-ffa450edef68
2013-08-03 11:01:36 +00:00
Gary D. Gregory 70485e44f2 Add CSVRecord#getInt(String) API and tests.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1509450 13f79535-47bb-0310-9956-ffa450edef68
2013-08-01 21:57:46 +00:00
Gary D. Gregory 4bb75e3edb Add CSVRecord#getLong(String) API and tests.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1509449 13f79535-47bb-0310-9956-ffa450edef68
2013-08-01 21:54:37 +00:00
Gary D. Gregory ac03c2eaa7 Simplify tests.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1509446 13f79535-47bb-0310-9956-ffa450edef68
2013-08-01 21:51:10 +00:00
Gary D. Gregory 666350b94a Sort members.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1509442 13f79535-47bb-0310-9956-ffa450edef68
2013-08-01 21:48:39 +00:00
Gary D. Gregory 50b7f79338 CSVRecord.get(String) throws IAE if the column is not mapped (does not exist). This is similar to what JDBC does in ResultSet. Add getBoolean(String) API and tests.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1509431 13f79535-47bb-0310-9956-ffa450edef68
2013-08-01 21:11:10 +00:00