Results 1 to 3 of 3

Thread: Fixedlength but no new line character

  1. #1
    Join Date
    Apr 2008
    Posts
    174

    Question 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. #2
    Join Date
    Jun 2005
    Posts
    4,230

    Default

    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.

  3. #3

    Default BufferedReaderFactory strategy config

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

    Thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •