I having a text file having records as below
name(1-3),age(4-5),ownCar(6)(if has put Y else leave blank)
Samples of data :
Dom32Y
Pat22
Sam23
Rob45Y
So here if you see each record is not of fixed length in size..So how can i read this text file using Spring Batch. Now i am reading this file using FixedLengthTokenizer , But i am getting error "Caused by: org.springframework.batch.item.file.transform.IncorrectLineLengthException"
I'm new to Spring Batch and Java Config. If someone can help me writing a solution for my problem i would really aprecciate it!