I've a class that was working with Bindy 2.17, but having migrated to Camel 2.21.2, it is no longer trimming the incoming data when I unmarshall.
I've tried adding a paddingChar
attribute to the record annotation, but that has had no effect, and as it is spaces I'm trying to trim, it should be the default paddingChar
value anyway.
My class is of the form
@FixedLengthRecord( header = MyClass.MyHeader.class, footer = MyClass.MyFooter.class, skipHeader = true, skipFooter = true, ignoreTrailingChars = true, crlf="WINDOWS", paddingChar = ' ' )
public class MyClass{
@DataField( pos = 1, length = 2, trim = true )
private String field1;
@DataField( pos = 2, length = 15, trim = true )
private String field2;
@DataField( pos = 3, length = 15, trim = true )
private String field3;
@FixedLengthRecord( ignoreTrailingChars = true )
public static class MyHeader {
}
@FixedLengthRecord( ignoreTrailingChars = true)
public static class MyFooter {
}
}
Has something changed in the way trim is configured, or is there something else I'm missing?
Thanks!