This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

FlatFileItemProvider - Is it really so?

Nov 16th, 2007, 02:17 PM

The FlatFileItemProvider is one of the classes I use the most, but there is a tiny little thing that bothers me (I'm being picky here ). It is actually not restricted to Flat Files, or even to Files. As it uses an InputSource to fetch data (actually a FieldSetInputSource) it is totally independent from the source type.

I would suggest something more like 'FieldSetMapperItemProvider' or that relates more to what it actually does.

That was actually its name in an earlier draft, but we switched to "FlatFile*" on the grounds that this is by far the most common usage, and if people are looking for something to process flat files, then the name will be easy to find.

If anyone wants to vote for the FieldSet* naming add your comments here...

Comment

I believe the FlatFileItemProvider was removed quite awhile ago in the latest snapshot, although it still exists in milestone 2. The change was part of a fix to move FieldSetMapping into the input source so that more informative exceptions could be thrown when file parsing errors are encountered.