Announcement Announcement Module
No announcement yet.
FlatFileItemProvider - Is it really so? Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • FlatFileItemProvider - Is it really so?

    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.

  • #2
    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...
    Last edited by Dave Syer; Nov 20th, 2007, 02:13 AM. Reason: spelling


    • #3
      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.