Results 1 to 3 of 3

Thread: Facing issue with FlatFileItemReader

  1. #1
    Join Date
    Sep 2011
    Posts
    4

    Default Facing issue with FlatFileItemReader

    data1<tab>data2<tab>data3 "somedata<tab>data4

    I have a similar data in my file. where a double quote is missing in column 3.
    When i read this file using FlatFileItemReader. It is assigning the both 3rd and 4th column to the 3rd field even when i give the delimiter as tab.

    Can anyone help me with this.

    Thanks,
    Arvind

  2. #2

    Default

    Do you use the http://static.springsource.org/sprin...Tokenizer.html?

    If yes change the quote character to something less harmful.

    e.g. like this

    Code:
                    <property name="lineTokenizer">
                        <bean class="org.springframework.batch.item.file.transform.DelimitedLineTokenizer">
                            <property name="quoteCharacter" value="@" />
                        </bean>
                    </property>
    Last edited by michael.lange; Oct 14th, 2011 at 01:44 AM.

  3. #3
    Join Date
    Sep 2011
    Posts
    4

    Default

    Thanks Michael, that worked..

Posting Permissions

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