I am using camel-bindy in order to create fixed-length files. I am creating the file correct, but I have a new request to separate each field-column with character ";". Thus at the end I need to have a fixed-length file semicolon separated. Do you know if this is possible with camel-bindy?
Next is my model class
@FixedLengthRecord(length = 313, paddingChar = ' ')
public class Fastbox {
@DataField(pos = 1, length = 7, align = "L")
private String field1;
@DataField(pos = 2, length = 10, align = "L")
private String field2;
@DataField(pos = 3, length = 3, align = "R")
private Integer field3;
@DataField(pos = 4, length = 10, align = "L")
private String field4;
...
If i try to use something like this
@DataField(pos = 1, length = 7, align = "L", delimiter = ";")
I am loosing the length. What I mean by that is that if the value is null, length is not taken into consideration and just puts a semicolon. So I am having
;field2 fi3field4
instead of
;field2 fi3field4
Thanks!