fixedlength
fixedlength copied to clipboard
Fast simple zero-dependency Java library to parse fixed length files
I have a variable segments structure like, A001{field1-2character}{field2-12characters}{field3-21characters}**C001**{field4-1character}{field5-10characters}{field6-13characters}D001{field7-12character}{field8-2characters}{field9-21characters} another string can be A001{field1-2character}{field2-12characters}{field3-21characters}**B001**{field11-5characters}{field12-8characters}{field13-3characters}D001{field7-12character}{field8-2characters}{field9-21characters}**E001**{field20-5characters}{field21-12characters}{field22-2characters} As mentioned we have segments like A001, B001 , C001, D001, etc.. All segments have fixed format...
It would be nice to be able to use this library with Java 14 records, for example: ```java public record LineRecord( @FixedField(offset = 1, length = 42) String firstStr, @FixedField(offset...
Hi, Thanks for a great library. I have a case where we have fields that sometimes only contains white spaces. What happens now is that the field is set to...