I'm working with Apache Camel Bindy, the version of Camel is 2.18.1. I have a text file, from where I'm reading the content. I read line by line and convert values using this class:
@FixedLengthRecord(length = 60, ignoreTrailingChars = true)
public class RecordClassBody implements Serializable {
and one of my properties is:
@DataField(pos = 4, length = 3, paddingChar = '0', trim = true)
private Integer count;
The thing is that when the value in the line is "000" the returning value of count is null, if I removed trim = true
it works fine and the integer value is 0, but I need the trim.
I can't find why is this happening and the true solution for this.