I am trying to create a tab delimited file using the FlatFileItemWriter and the DelimitedLineAggregator. However when I specify "\t" as the delimiter it puts the litteral characters "\t" and not an actual tab.
Examlple config:
Example out:Code:<bean id="fileWriter" class="org.springframework.batch.item.file.FlatFileItemWriter"> <property name="resource" ref="outputFile" /> <property name="fieldSetCreator" ref="fieldSetCreator"> <property name="lineAggregator"> <bean class="org.springframework.batch.item.file.transform.DelimitedLineAggregator"> <property name="delimiter" value="\t"/> </bean> </property> </bean>
Code:\ta\tb\tc\td\te


Reply With Quote