Announcement Announcement Module
Collapse
No announcement yet.
To read fixed length data file with repeat patterns using spring batch Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • To read fixed length data file with repeat patterns using spring batch

    Hi,

    I am new to the spring batch. In our project, we have one requirement to read the flat file. We are planning to use spring batch flat file reading utilities.

    Our Flat file is fixed length data file with repeat patterns

    For ex

    One person can have many mail addressss (80 characters each mailing address)
    In our flat file, Position (1-3) tells the number of mailing address.
    If it is number of mailing address is 2 means, 2 mailing address followed in the same row.

    $02<position 4 to 83 -mailing address 1><position 84 to 163 mailing address 2>

    Is it possible implement the above requirement in spring batch?

    Thanks

  • #2
    If there is a maximum number of addresses you could use the FixedLengthLineTokenzier in non-strict mode. If the nunber is unlimited you might need to write your own tokenizer.

    Comment

    Working...
    X