Announcement Announcement Module
Collapse
No announcement yet.
Fixedlength but no new line character Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Fixedlength but no new line character

    Hello Everyone,

    I was on a break so it is been a long time. I am sure someone already might have had this question and it would have got answered but couldnt find anything relevant after searching the forum for few minutes.

    Here is a sample of my file:

    xxxxxxxxxx yyyyyyyyyy zzzzzzzzzz aaaaa
    aaaaa

    I know it is wierd. The length of each record is 10 characters (as denoted above with repeated alphabets. They continuously appear in the file, there is no new line character. I have to read 10 characters (fixed length) at a time as a single record and process it and then continue with the next set of 10 characters.

    I am sure there has to be some setting that would let me do it. Can someone help me out here?

    Thanks!!

  • #2
    Spring Batch 2.1 has the BufferedReaderFactory strategy as an configuration extension for FlatFileItemReader (http://static.springsource.org/sprin...erFactory.html). Before 2.1 you have to write your own FlatFileItemReader.

    Comment


    • #3
      BufferedReaderFactory strategy config

      So on this 10 char record length file, what might the Reader config (in xml) look like?

      Thanks.

      Comment

      Working...
      X