I\'m dealing with many CSVs files that don\'t have a fixed header/column, saying that I can get file1.csv with 10 column and file2.csv with 50 column.
I can\'t know
Create your own LineTokenizer
implementation. The DelimitedLineTokenizer
expects a predefined number of columns. If you create your own, you can be as dynamic as you want. You can read more about the LineTokenizer
in the documentation here: http://docs.spring.io/spring-batch/apidocs/org/springframework/batch/item/file/transform/LineTokenizer.html