Uploaded image for project: 'Spring Batch'
  1. Spring Batch
  2. BATCH-2672

Consider adding an encoding(String) method in FlatFileItemReaderBuilder

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 4.0.0
    • Fix Version/s: 4.0.1
    • Component/s: Core
    • Labels:
      None

      Description

      Currently we need to build the reader, and then set the encoding:

              FlatFileItemReader<Company> reader = new FlatFileItemReaderBuilder<Company>()
                      .name("")
                      ...
                      .build();
              reader.setEncoding("ISO-8859-1");
      

      It would be great to add the encoding in the builder flow:

              FlatFileItemReader<Company> reader = new FlatFileItemReaderBuilder<Company>()
                      .name("")
                      .encoding("ISO-8859-1");
                      ...
                      .build();
      

        Attachments

          Activity

            People

            • Assignee:
              mbenhassine Mahmoud Ben Hassine
              Reporter:
              afoulfoin Anthony Foulfoin
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: