Announcement Announcement Module
Collapse
No announcement yet.
Facing issue with FlatFileItemReader Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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, 02:44 AM.

    Comment


    • #3
      Thanks Michael, that worked..

      Comment

      Working...
      X