Sebastian Bazley
|
cbce4da24b
|
Add ctor to create simplest possible CSV parser
Does not make sense to allow delim = EOL in ctor but disable it in withDelimiter()
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1398556 13f79535-47bb-0310-9956-ffa450edef68
|
2012-10-15 22:50:00 +00:00 |
Sebastian Bazley
|
91058bb95f
|
Typo
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1398370 13f79535-47bb-0310-9956-ffa450edef68
|
2012-10-15 16:29:37 +00:00 |
Sebastian Bazley
|
7d8c7f17ff
|
Remove redundant code
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1398367 13f79535-47bb-0310-9956-ffa450edef68
|
2012-10-15 16:27:57 +00:00 |
Sebastian Bazley
|
3a90cfe249
|
Explicit unboxing; associated Javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1398365 13f79535-47bb-0310-9956-ffa450edef68
|
2012-10-15 16:27:25 +00:00 |
Sebastian Bazley
|
33c004f525
|
Invalid use of == to compare Character equality; add tests to detect this
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1398357 13f79535-47bb-0310-9956-ffa450edef68
|
2012-10-15 16:04:29 +00:00 |
Sebastian Bazley
|
6f94c8a3da
|
Explicit unboxing
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1398354 13f79535-47bb-0310-9956-ffa450edef68
|
2012-10-15 16:02:32 +00:00 |
Sebastian Bazley
|
7c770e0b53
|
Now that delimiter is a char, simplify API by removing withDelimiter(Character)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1398349 13f79535-47bb-0310-9956-ffa450edef68
|
2012-10-15 15:53:09 +00:00 |
Sebastian Bazley
|
ae5e7898f5
|
Unused
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1398343 13f79535-47bb-0310-9956-ffa450edef68
|
2012-10-15 15:39:30 +00:00 |
Gary D. Gregory
|
6870022916
|
The class implements Closeable.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1398278 13f79535-47bb-0310-9956-ffa450edef68
|
2012-10-15 13:15:09 +00:00 |
Gary D. Gregory
|
4aee321abb
|
The class implements Flushable.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1398277 13f79535-47bb-0310-9956-ffa450edef68
|
2012-10-15 13:13:05 +00:00 |
Gary D. Gregory
|
e1dc4f870e
|
Remove method org.apache.commons.csv.CSVPrinter.print(Object, boolean), it should not have been public in the first place, the format is the API to specify this kind of option.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1398276 13f79535-47bb-0310-9956-ffa450edef68
|
2012-10-15 13:12:21 +00:00 |
Gary D. Gregory
|
350d34d5cf
|
Rename encapsulator to quote char.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1398187 13f79535-47bb-0310-9956-ffa450edef68
|
2012-10-15 03:37:34 +00:00 |
Gary D. Gregory
|
ddfe9df74f
|
Rename encapsulator to quote char.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1398186 13f79535-47bb-0310-9956-ffa450edef68
|
2012-10-15 03:30:45 +00:00 |
Gary D. Gregory
|
26188064b0
|
Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1398185 13f79535-47bb-0310-9956-ffa450edef68
|
2012-10-15 03:29:23 +00:00 |
Gary D. Gregory
|
e6f2de0fa8
|
Organize imports.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1398184 13f79535-47bb-0310-9956-ffa450edef68
|
2012-10-15 03:26:27 +00:00 |
Gary D. Gregory
|
6eddd544e5
|
Javadoc: @version.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1398183 13f79535-47bb-0310-9956-ffa450edef68
|
2012-10-15 03:25:52 +00:00 |
Gary D. Gregory
|
fc11e68728
|
Javadoc: @version.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1398182 13f79535-47bb-0310-9956-ffa450edef68
|
2012-10-15 03:22:30 +00:00 |
Gary D. Gregory
|
e4a6faf8ab
|
Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1398181 13f79535-47bb-0310-9956-ffa450edef68
|
2012-10-15 03:21:54 +00:00 |
Gary D. Gregory
|
8aa02596af
|
Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1398180 13f79535-47bb-0310-9956-ffa450edef68
|
2012-10-15 03:20:43 +00:00 |
Gary D. Gregory
|
70584f87f5
|
Fix Javadoc and better lvar name.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1398149 13f79535-47bb-0310-9956-ffa450edef68
|
2012-10-14 23:23:14 +00:00 |
Gary D. Gregory
|
bdb5842eef
|
Validation fails if no quotes mode set but no escape character is set.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1398148 13f79535-47bb-0310-9956-ffa450edef68
|
2012-10-14 23:22:17 +00:00 |
Gary D. Gregory
|
f51f43d184
|
Implement Quote.NON_NUMERIC and Quote.MINIMAL. NONE throws a 'not implemented yet' exception.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1398137 13f79535-47bb-0310-9956-ffa450edef68
|
2012-10-14 21:23:33 +00:00 |
Gary D. Gregory
|
b9b3b58cbd
|
Sort members.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1398135 13f79535-47bb-0310-9956-ffa450edef68
|
2012-10-14 21:02:55 +00:00 |
Gary D. Gregory
|
9c43ad3afb
|
Rename test method.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1398134 13f79535-47bb-0310-9956-ffa450edef68
|
2012-10-14 21:02:36 +00:00 |
Gary D. Gregory
|
2f2d9aa780
|
Implement Quote.ALL. Bullet-proof a unit test.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1398133 13f79535-47bb-0310-9956-ffa450edef68
|
2012-10-14 21:01:21 +00:00 |
Gary D. Gregory
|
cdef24d918
|
Printer can now use a JDBC result set as input. Use H2 as lightweight in-memory JDBC database for easy test set up.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1398108 13f79535-47bb-0310-9956-ffa450edef68
|
2012-10-14 18:08:58 +00:00 |
Gary D. Gregory
|
1046db8f90
|
Remove unused imports.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1398021 13f79535-47bb-0310-9956-ffa450edef68
|
2012-10-14 06:01:21 +00:00 |
Gary D. Gregory
|
010c81e8b4
|
Add roundtrip test.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1398020 13f79535-47bb-0310-9956-ffa450edef68
|
2012-10-14 06:00:40 +00:00 |
Gary D. Gregory
|
79eb6e0392
|
Add APIs to print arrays of records and iterables of records.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1398019 13f79535-47bb-0310-9956-ffa450edef68
|
2012-10-14 05:54:06 +00:00 |
Gary D. Gregory
|
7fd16f353a
|
Rename "encapsulator" to "quoteChar" so we have quoteChar and quotePolicy. Encapsulator makes me want to ask "encapsulate what"? fieldEncapsulator would be better but so verbose, quoteChar feels more to the point to me and provides symmetry with quotePolicy.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1398017 13f79535-47bb-0310-9956-ffa450edef68
|
2012-10-14 05:10:57 +00:00 |
Gary D. Gregory
|
0dbb499888
|
Rename "encapsulator" to "quoteChar" so we have quoteChar and quotePolicy. Encapsulator makes me want to ask "encapsulate what"? fieldEncapsulator would be better but so verbose, quoteChar feels more to the point to me and provides symmetry with quotePolicy.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1398016 13f79535-47bb-0310-9956-ffa450edef68
|
2012-10-14 05:08:47 +00:00 |
Gary D. Gregory
|
17139b840f
|
Better lvar names.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1398015 13f79535-47bb-0310-9956-ffa450edef68
|
2012-10-14 05:06:35 +00:00 |
Gary D. Gregory
|
53f15f420b
|
Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1398014 13f79535-47bb-0310-9956-ffa450edef68
|
2012-10-14 05:04:21 +00:00 |
Gary D. Gregory
|
2ff847ea91
|
Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1398013 13f79535-47bb-0310-9956-ffa450edef68
|
2012-10-14 05:03:35 +00:00 |
Gary D. Gregory
|
f80c5bd0ad
|
Rename "encapsulator" to "quoteChar" so we have quoteChar and quotePolicy. Encapsulator makes me want to ask "encapsulate what"? fieldEncapsulator would be better but so verbose, quoteChar feels more to the point to me and provides symmetry with quotePolicy.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1398012 13f79535-47bb-0310-9956-ffa450edef68
|
2012-10-14 05:01:56 +00:00 |
Gary D. Gregory
|
f6c9a36ad6
|
Group quote test fragments together.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1398011 13f79535-47bb-0310-9956-ffa450edef68
|
2012-10-14 05:01:26 +00:00 |
Gary D. Gregory
|
ecea0c3599
|
Rename "encapsulator" to "quoteChar" so we have quoteChar and quotePolicy. Encapsulator makes me want to ask "encapsulate what"? fieldEncapsulator would be better but so verbose, quoteChar feels more to the point to me and provides symmetry with quotePolicy.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1398010 13f79535-47bb-0310-9956-ffa450edef68
|
2012-10-14 05:00:19 +00:00 |
Gary D. Gregory
|
6e57364216
|
Rename "encapsulator" to "quoteChar" so we have quoteChar and quotePolicy. Encapsulator makes me want to ask "encapsulate what"? fieldEncapsulator would be better but so verbose, quoteChar feels more to the point to me and provides symmetry with quotePolicy.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1398009 13f79535-47bb-0310-9956-ffa450edef68
|
2012-10-14 04:56:50 +00:00 |
Gary D. Gregory
|
0030e1a9a2
|
Add quote policy to format. (Considering renaming "encapsulator" to "quoteChar" so we have quoteChar and quotePolicy. Encapsulator makes me want to ask "encapsulate what"? fieldEncapsulator would be better but so verbose, quoteChar feels more to the point to me. )
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1398008 13f79535-47bb-0310-9956-ffa450edef68
|
2012-10-14 04:53:51 +00:00 |
Gary D. Gregory
|
33eb71e9a1
|
In-line comment.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1398007 13f79535-47bb-0310-9956-ffa450edef68
|
2012-10-14 04:37:10 +00:00 |
Gary D. Gregory
|
7aeddef435
|
Change the type of printer API to accept Object instead of String.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1398006 13f79535-47bb-0310-9956-ffa450edef68
|
2012-10-14 04:36:51 +00:00 |
Gary D. Gregory
|
3be1057064
|
Change the type of printer API to accept Object instead of String.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1398005 13f79535-47bb-0310-9956-ffa450edef68
|
2012-10-14 04:31:39 +00:00 |
Gary D. Gregory
|
68322e0336
|
Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1398003 13f79535-47bb-0310-9956-ffa450edef68
|
2012-10-14 04:07:43 +00:00 |
Gary D. Gregory
|
639e68e253
|
Rename printSep() to printDelimiter().
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1398002 13f79535-47bb-0310-9956-ffa450edef68
|
2012-10-14 04:06:39 +00:00 |
Gary D. Gregory
|
75a835a837
|
Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1398001 13f79535-47bb-0310-9956-ffa450edef68
|
2012-10-14 04:02:53 +00:00 |
Gary D. Gregory
|
e693d87f71
|
Start of [CSV-53] Allow to always enclose printed values into quotes.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1398000 13f79535-47bb-0310-9956-ffa450edef68
|
2012-10-14 04:01:47 +00:00 |
Gary D. Gregory
|
1b4474c0a0
|
Javadoc: Use the active voice and change one verb.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1397999 13f79535-47bb-0310-9956-ffa450edef68
|
2012-10-14 03:43:47 +00:00 |
Gary D. Gregory
|
eb472cb82a
|
Better lvar name.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1397998 13f79535-47bb-0310-9956-ffa450edef68
|
2012-10-14 03:33:20 +00:00 |
Gary D. Gregory
|
a50d473a3b
|
Delimiter is not optional so change back type from Character to char. The side effect is that the "pristine" format must be built with somekind of default (',') seems reasonable. The comment used to say "no settings defined" but that was not true, since false was passed in for two values instead of null. IMO, this is all due to the fluent API making this part of the code a little more tricky.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1397930 13f79535-47bb-0310-9956-ffa450edef68
|
2012-10-13 19:15:59 +00:00 |
Gary D. Gregory
|
f074aeedfe
|
Delimiter is not optional so change back type from Character to char. The side effect is that the "pristine" format must be built with somekind of default (',') seems reasonable. The comment used to say "no settings defined" but that was not true, since false was passed in for two values instead of null. IMO, this is all due to the fluent API making this part of the code a little more tricky.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1397927 13f79535-47bb-0310-9956-ffa450edef68
|
2012-10-13 19:05:08 +00:00 |